Esempio n. 1
0
        public void TestCase03()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase03.txt"));
            Assert.AreEqual(18409, aor.Count("apple"));
            Assert.AreEqual(19582, aor.Count("orange"));
        }
Esempio n. 2
0
        public void TestCase10()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase10.txt"));
            Assert.AreEqual(37609, aor.Count("apple"));
            Assert.AreEqual(38141, aor.Count("orange"));
        }
Esempio n. 3
0
        public void TestCase11()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase11.txt"));
            Assert.AreEqual(5046, aor.Count("apple"));
            Assert.AreEqual(5659, aor.Count("orange"));
        }
Esempio n. 4
0
        public void TestCase09()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase09.txt"));
            Assert.AreEqual(16141, aor.Count("apple"));
            Assert.AreEqual(3358, aor.Count("orange"));
        }
Esempio n. 5
0
        public void TestCase08()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase08.txt"));
            Assert.AreEqual(28, aor.Count("apple"));
            Assert.AreEqual(2966, aor.Count("orange"));
        }
Esempio n. 6
0
        public void TestCase06()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase06.txt"));
            Assert.AreEqual(6661, aor.Count("apple"));
            Assert.AreEqual(4075, aor.Count("orange"));
        }
Esempio n. 7
0
        public void TestCase05()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase05.txt"));
            Assert.AreEqual(8032, aor.Count("apple"));
            Assert.AreEqual(3129, aor.Count("orange"));
        }
Esempio n. 8
0
        public void TestCase04()
        {
            AppleAndOrange aor = new AppleAndOrange();

            aor.ReadStream(CreateFileStream("AppleAndOrangeTestCase04.txt"));
            Assert.AreEqual(2530, aor.Count("apple"));
            Assert.AreEqual(1149, aor.Count("orange"));
        }