public void HighestRank_Result_Should_Be_12_Case_Test() { var actual = HighestRankNumberInArray.HighestRank(new[] { 12, 10, 8, 8, 3, 3, 3, 3, 2, 4, 10, 12, 10 }); Assert.AreEqual(3, actual); }
public void HighestRank_Same_Count_Take_Max_Number_Should_Be_12_Test() { var actual = HighestRankNumberInArray.HighestRank(new[] { 10, 12, 8, 12, 7, 6, 4, 10, 12, 10 }); Assert.AreEqual(12, actual); }
public void BasicTest() { var arr = new int[] { 12, 10, 8, 12, 7, 6, 4, 10, 12 }; Assert.AreEqual(12, HighestRankNumberInArray.HighestRank(arr)); }