public void TestGenerateWithTwoYieldsTwo() { List <int> expected = new List <int>(); expected.Add(2); Assert.AreEqual(expected, PrimeFactors.Generate(2)); }
public void TestGenerateWithTenYieldsFiveAndTwo() { List <int> expected = new List <int>(); expected.Add(2); expected.Add(5); Assert.AreEqual(expected, PrimeFactors.Generate(10)); }
public void TestGenerateWithNineYieldsThreeAndThree() { List <int> expected = new List <int>(); expected.Add(3); expected.Add(3); Assert.AreEqual(expected, PrimeFactors.Generate(9)); }
public void Init() { list = new List <int>(); numberToFactor = new PrimeFactors(); }
public void TestGenerateYieldsEmptyList() { List <int> expected = new List <int>(); Assert.AreEqual(expected, PrimeFactors.Generate(1)); }