Skip to content

RomanFigure.Spec.Equality

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

Story: equality

As a library user
I want to use methods and operators on roman figures
So that I can say that two roman figures are equal

a roman figure is compared against a boxed char with a different value

Given the roman figure V
When equals X
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against a boxed char with the same value

Given the roman figure V
When equals V
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against a boxed int with the same value

Given the roman figure V
When equals 5
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against a boxed lowercase char with the same value

Given the roman figure V
When equals v
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against a boxed number with a different value

Given the roman figure V
When equals 10
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against a boxed number with the same value

Given the roman figure V
When equals 5
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against another objectified figure

Given the roman figure V
When equals X
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against not the same roman figure

Given the roman figure V
When equals X
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against not the same roman figure

Given the roman figure V
When not equal to X
Then is True

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against not the same roman figure

Given the roman figure V
When equal to X
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against null

Given the roman figure V
When equals 'null'
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against null

Given the roman figure V
When equals 'null'
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against null

Given the roman figure V
When not equal to 'null'
Then is True

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against null

Given the roman figure V
When equal to 'null'
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against the same objectified figure

Given the roman figure V
When equals V
Then is True

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against the same roman figure

Given the roman figure V
When equals V
Then is True

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against the same roman figure

Given the roman figure V
When not equal to V
Then is False

Tags: RomanFigure, Equality, non-generic

a roman figure is compared against the same roman figure

Given the roman figure V
When equal to V
Then is True

Tags: RomanFigure, Equality, non-generic

null is compared against a roman figure

Given the roman figure 'null'
When not equal to X
Then is True

Tags: RomanFigure, Equality, non-generic

null is compared against a roman figure

Given the roman figure 'null'
When equal to X
Then is False

Tags: RomanFigure, Equality, non-generic

null is compared against null

Given the roman figure 'null'
When not equal to 'null'
Then is False

Tags: RomanFigure, Equality, non-generic

null is compared against null

Given the roman figure 'null'
When equal to 'null'
Then is True

Tags: RomanFigure, Equality, non-generic

Clone this wiki locally