Skip to content

RomanFigure.Spec.TryConvert

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

Story: try convert a number

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

convert a defined figure

Given the number 10
When the number is converted
Then the result is True
And the figure is X

Tags: RomanFigure, TryConvert

convert an undefined figure

Given the number 11
When the number is converted
Then the result is False
And the figure is 'null'

Tags: RomanFigure, TryConvert

figures are unique

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

Tags: RomanFigure, TryConvert

Clone this wiki locally