public void TestMethod3() { int[] arr = { 1, 1, 1, 1, 1, 1 }; int counter = CountOccurenceOfNum.CountOccurenceOfNumInArray(arr, 2); Assert.AreEqual(counter, 0); }
public void TestMethod2() { int[] arr = { 2, 2, 2, 2, 2, 2 }; int counter = CountOccurenceOfNum.CountOccurenceOfNumInArray(arr, 2); Assert.AreEqual(counter, 6); }