public void HackerRankTest16() { string[] queries = GetInputData(_sTestDataRootDir + "hackerrank16_input.txt"); int[] expected = GetResultAnswers(_sTestDataRootDir + "hackerrank16_answer.txt"); int[] result = QHeap1.ProcessQueries(queries); CollectionAssert.AreEqual(expected, result); }
public void SampleATest() { string[] queries = new string[] { "1 4", "1 9", "3", "2 4", "3" }; int[] result = QHeap1.ProcessQueries(queries); int[] expected = new int[] { 4, 9 }; CollectionAssert.AreEqual(expected, result); }