Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Performance test");
            IMajorityFunction func = new MajoritySimple();
            PerformanceTester pt   = new PerformanceTester(50_000, 2);

            pt.RunTest(func);
        }
Esempio n. 2
0
        public void TestDummy3()
        {
            IMajorityFunction f = new MajoritySimple();

            Assert.IsTrue(f.HasMajority(new int[] { 1, 1 }));
        }