public void TestDistinctElements() { int[] myTestNumbers = { 8, 6, 7, 5, 3, 0, 9 }; Assert.AreEqual(7, DistinctElements.CountDistinct(myTestNumbers)); myTestNumbers = new int[] { 9, 2, 1, 0, 1 }; Assert.AreEqual(4, DistinctElements.CountDistinct(myTestNumbers)); }
public void TestCountDistinct_Jenny() { int[] myTestNumbers = { 8, 6, 7, 5, 3, 0, 9 }; Assert.AreEqual(7, DistinctElements.CountDistinct(myTestNumbers)); }
public void TestCountDistinct_ZIP() { int[] myTestNumbers = { 9, 2, 1, 0, 1 }; Assert.AreEqual(4, DistinctElements.CountDistinct(myTestNumbers)); }
public void TestMethod2() { int[] myArray1 = { 5, 4, 6, 3, 1, 85, 4, 2, 3, 4, 6, 8, 4, 351, 65, 65, 3, 13, 521, 35, 3, 132, 1, 35, 321, 3 }; Assert.AreNotEqual(5, DistinctElements.DistinctElementsCheck(myArray1)); }
public void TestMethod1() { int[] myArray = { 8, 6, 7, 5, 3, 0, 9, 8, 6, 7, 5, 3, 0, 9 }; Assert.AreEqual(7, DistinctElements.DistinctElementsCheck(myArray)); }