예제 #1
0
        public void EmptyTest()
        {
            var input = new int[] { };
            var r     = new Codility02_OddOccurences().Occurences(input);

            Assert.AreEqual(0, r);
        }
예제 #2
0
        public void SampleTest()
        {
            var input = new[] { 9, 3, 9, 3, 9, 7, 9 };
            var r     = new Codility02_OddOccurences().Occurences(input);

            Assert.AreEqual(7, r);
        }