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

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

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

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

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

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