public void Given47_WhenRevert_ThenItShouldBe61() { var reverter = new Reverter(); reverter.Revert(47).ShouldBe(61); }
public void Given13_WhenRevert_ThenItShouldBe11() { var reverter = new Reverter(); reverter.Revert(13).ShouldBe(11); }
public void GivenOneBilionAndOne_WhenRevert_ThenArgumentOutOfRangeExceptionShouldBeThrown() { var reverter = new Reverter(); Should.Throw <ArgumentOutOfRangeException>(() => reverter.Revert(1000000001)); }
public void GivenOneBilion_WhenRevert_ThenItShouldBe1365623() { var reverter = new Reverter(); reverter.Revert(1000000000).ShouldBe(1365623); }
public void GivenZero_WhenRevert_ThenArgumentOutOfRangeExceptionShouldBeThrown() { var reverter = new Reverter(); Should.Throw <ArgumentOutOfRangeException>(() => reverter.Revert(0)); }