public void ShouldWorkTest()
 {
     Assert.AreEqual(0, CatchingCarMileageNumbers.IsInteresting(3, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(1, CatchingCarMileageNumbers.IsInteresting(1336, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(2, CatchingCarMileageNumbers.IsInteresting(1337, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(0, CatchingCarMileageNumbers.IsInteresting(11208, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(1, CatchingCarMileageNumbers.IsInteresting(11209, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(2, CatchingCarMileageNumbers.IsInteresting(11211, new List <int>()
     {
         1337, 256
     }));
 }
        public void PalindromeIsInteresting(int number)
        {
            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(number, new List <int>()
            {
            });

            // assert
            Assert.Equal(2, actual);
        }
        public void DigitsDecrementingIsInteresting(int number)
        {
            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(number, new List <int>()
            {
            });

            // assert
            Assert.Equal(2, actual);
        }
        public void EveryDigitSameNumberIsInteresting()
        {
            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(3333, new List <int>()
            {
            });

            // assert
            Assert.Equal(2, actual);
        }
        public void FollowedByDigitsZerosIsInteresting()
        {
            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(800, new List <int>()
            {
            });

            // assert
            Assert.Equal(2, actual);
        }
        public void NumberInAwesomePhrasesMoreThanHundredIsInteresting()
        {
            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(857, new List <int>()
            {
                3, 857
            });

            // assert
            Assert.Equal(2, actual);
        }
        public void AlmostInterestingTest(int number)
        {
            // arrange
            List <int> awesomePhrases = new List <int>()
            {
                1337, 256
            };

            // act
            int actual = CatchingCarMileageNumbers.IsInteresting(number, awesomePhrases);

            // assert
            Assert.Equal(1, actual);
        }
 public void AdvancedTests()
 {
     Assert.AreEqual(1, CatchingCarMileageNumbers.IsInteresting(799999, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(0, CatchingCarMileageNumbers.IsInteresting(7540, new List <int>()
     {
         1337, 256
     }));
     Assert.AreEqual(1, CatchingCarMileageNumbers.IsInteresting(67888, new List <int>()
     {
         1337, 256
     }));
 }