Esempio n. 1
0
        public static void EmptyTree()
        {
            Pre sol = new Pre();
            HappyLittleTrees happy = new HappyLittleTrees();

            Console.WriteLine(happy.Description());
            Assert.AreEqual(sol.sol1, happy.Description());
        }
Esempio n. 2
0
        public static void BadTree()
        {
            Pre sol = new Pre();
            HappyLittleTrees happy = new HappyLittleTrees();

            happy.GrowBranches();
            happy.Ouch(1);
            happy.GrowTrunk();
            Console.WriteLine(happy.Description());
            Assert.AreEqual(sol.sol2, happy.Description());
        }