static void Main(string[] args) { Console.WriteLine("Performance test"); IMajorityFunction func = new MajoritySimple(); PerformanceTester pt = new PerformanceTester(50_000, 2); pt.RunTest(func); }
public void TestDummy3() { IMajorityFunction f = new MajoritySimple(); Assert.IsTrue(f.HasMajority(new int[] { 1, 1 })); }