コード例 #1
0
        public void ShouldReturnWhetherNumberIsPrime(int number, bool expected)
        {
            PrimeFactorDoer primeFactorDoer = new PrimeFactorDoer();

            Assert.AreEqual(expected, primeFactorDoer.IsPrime(number));
        }
コード例 #2
0
        public void ShouldReturnPrimeFactors(int[] expected, int number)
        {
            PrimeFactorDoer primeFactorDoer = new PrimeFactorDoer();

            Assert.AreEqual(expected, primeFactorDoer.GetPrimeFactors(number));
        }