public void FindCountTest() { m_Finder.Find(); OddPair[] actual = m_Finder.OddPairs; Assert.AreEqual(4, actual.Length); }
public void TimeTest() { int[] numbers = CreateNumbers(200); var finder = new DistinctPairsFinder(numbers); DateTime start = DateTime.Now; finder.Find(); DateTime end = DateTime.Now; var expected = new TimeSpan(0, 0, 1); TimeSpan actual = end - start; Assert.AreEqual(expected, actual); }