Esempio n. 1
0
        public void PrimeFindIndexOfElementFails()
        {
            PrimeNumbers prime = new PrimeNumbers();
            int          input = 103;

            prime.FindIndex(input);
        }
Esempio n. 2
0
        public void PrimeFindIndexOfElement()
        {
            PrimeNumbers prime    = new PrimeNumbers();
            int          input    = 73;
            int          expected = 20;
            int          actual   = prime.FindIndex(input);

            Assert.AreEqual(actual, expected);
        }