Skip to content

RomanFigure.Spec.Convert

Daniel Gonzalez Garcia edited this page May 5, 2017 · 2 revisions

Story: convert a number

As a library user
I want to be able to convert a number
So that I can get a figure instance

convert a defined figure

Given the number 1
When the number is converted
Then the figure is I

Tags: RomanFigure, Convert

convert an undefined figure

Given the number 3
When the number is converted
Then throws argument exception

Tags: RomanFigure, Convert

figures are unique

Given the number 10
the number 10 is converted again
Then is the same figure

Tags: RomanFigure, Convert

Clone this wiki locally