Example #1
0
        public void Given47_WhenRevert_ThenItShouldBe61()
        {
            var reverter = new Reverter();

            reverter.Revert(47).ShouldBe(61);
        }
Example #2
0
        public void Given13_WhenRevert_ThenItShouldBe11()
        {
            var reverter = new Reverter();

            reverter.Revert(13).ShouldBe(11);
        }
Example #3
0
        public void GivenOneBilionAndOne_WhenRevert_ThenArgumentOutOfRangeExceptionShouldBeThrown()
        {
            var reverter = new Reverter();

            Should.Throw <ArgumentOutOfRangeException>(() => reverter.Revert(1000000001));
        }
Example #4
0
        public void GivenOneBilion_WhenRevert_ThenItShouldBe1365623()
        {
            var reverter = new Reverter();

            reverter.Revert(1000000000).ShouldBe(1365623);
        }
Example #5
0
        public void GivenZero_WhenRevert_ThenArgumentOutOfRangeExceptionShouldBeThrown()
        {
            var reverter = new Reverter();

            Should.Throw <ArgumentOutOfRangeException>(() => reverter.Revert(0));
        }