예제 #1
0
        public void EmpytyZoo()
        {
            string input = "";

            string[] expected =
            {
                "",
            };

            CollectionAssert.AreEqual(expected, ZooDisaster.WhoEatsWho(input));
        }
예제 #2
0
        public void SingleKnownThing()
        {
            string input = "bug";

            string[] expected =
            {
                "bug",
                "bug"
            };

            CollectionAssert.AreEqual(expected, ZooDisaster.WhoEatsWho(input));
        }
예제 #3
0
        public void Example()
        {
            string input = "fox,bug,chicken,grass,sheep";

            string[] expected =
            {
                "fox,bug,chicken,grass,sheep",
                "chicken eats bug",
                "fox eats chicken",
                "sheep eats grass",
                "fox eats sheep",
                "fox"
            };

            CollectionAssert.AreEqual(expected, ZooDisaster.WhoEatsWho(input));
        }