Пример #1
0
        public void GetPrimeNumbers_ListNotEmpty()
        {
            var prime = new PrimeNumberCheck();

            prime.AddPrime(11);
            prime.AddPrime(2);
            prime.AddPrime(3);
            Assert.AreEqual("2, 3, 11", prime.GetPrimeNumbers());
        }
Пример #2
0
        public void AddPrime_UniqueNumbers()
        {
            var prime = new PrimeNumberCheck();

            prime.AddPrime(11);
            prime.AddPrime(2);
            prime.AddPrime(3);
            Assert.AreEqual("2, 3, 11", prime.GetPrimeNumbers());
        }