public void Generate_PrimesOf9_Returned3x3() { var sut = new PrimeFactorizer(); IList<int> result = sut.Factorize(9); result.ShouldMatch(3, 3); }
public void Generate_PrimesOf6_Returned3x2() { var sut = new PrimeFactorizer(); IList<int> result = sut.Factorize(6); result.ShouldContainItems(new[] {3, 2}); }
public void Generate_PrimesOf8_Returned2x2x2() { var sut = new PrimeFactorizer(); IList<int> result = sut.Factorize(8); result.ShouldMatch(2, 2, 2); }
public void Generate_PrimesOf1_EmptyList() { var sut = new PrimeFactorizer(); IList<int> result = sut.Factorize(1); result.ShouldBeEmpty(); }