public void Testcount5() { int[] Arr1 = new int[] { 1, 2, 3, 4, 5, 6 }; int result1 = Program2.count5(Arr1); Assert.AreEqual(1, result1); int[] Arr2 = new int[] { 1, 2, 3, 4, 6 }; int result2 = Program2.count5(Arr2); Assert.AreEqual(0, result2); }
public void TestCount5() { int[] arr1 = new int[] { 1, 2, 3, 4, 5 }; int rs1 = Program2.count5(arr1); Assert.AreEqual(1, rs1); int[] arr2 = new int[] { 1, 2, 3, 4 }; int rs2 = Program2.count5(arr2); Assert.AreEqual(0, rs2); int[] arr3 = new int[] { 1, 2, 5, 5, 5 }; int rs3 = Program2.count5(arr3); Assert.AreEqual(3, rs3); }