public void TestMethod06() { FrequentArray freq = new FrequentArray(); int[] result = freq.findCommonArray(new int[] { 1, 2, 3, 4, 5, 6, 7 }); CollectionAssert.AreEquivalent(result, new int[] { 1, 2, 3, 4, 5, 6, 7 }); }
public void TestMethod07() { FrequentArray freq = new FrequentArray(); var ex = Assert.ThrowsException <Exception>(() => freq.findCommonArray(new int[] { })); Assert.AreSame(ex.Message, "Input array is Zero!"); }
public void TestMethod04() { FrequentArray freq = new FrequentArray(); int[] result = freq.findCommonArray(new int[] { 5, 4, 3, 2, 4, 5, 1, 6, 1, 2, 5, 4 }); CollectionAssert.AreEquivalent(result, new int[] { 4, 5 }); }