Ejemplo n.º 1
0
        public void PublicMethodsCanChangeObjectState()
        {
            var Joker = new Megalomaniac();

            // Uncomment the next line and make the asert pass:
            // Joker.MakePlan("Destroy Batman");

            Assert.AreEqual("Destroy Batman", Joker.Mission);
            Assert.AreEqual("Steal the batmobile", Joker.RetrieveNextStepOfPlan());
        }
Ejemplo n.º 2
0
        public void PublicMethodsCanChangeObjectState()
        {
            var Joker = new Megalomaniac();

            // Uncomment the next line and make the asert pass:
            // Joker.MakePlan("Destroy Batman");

            Assert.AreEqual("Destroy Batman", Joker.Mission);
            Assert.AreEqual("Steal the batmobile", Joker.RetrieveNextStepOfPlan());

        }
Ejemplo n.º 3
0
        public void ClassesCanMaintainInternalState()
        {
            var Joker = new Megalomaniac();

            // Uncomment the next line and make the asert pass:
            // Joker.MakePlan("Destroy Batman");

            Assert.AreEqual("Destroy Batman", Joker.Mission);
            Assert.AreEqual("Steal the batmobile", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Drive batmobile to Central Park", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Cause accident involving catwoman", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Escape from Central Park", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Convince Batman he harmed Catwoman", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Get Batman to reveal his secret identity", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Put Bruce Wayne in Jail", Joker.RetrieveNextStepOfPlan());
        }
Ejemplo n.º 4
0
        public void ClassesCanMaintainInternalState()
        {
            var Joker = new Megalomaniac();

            // Uncomment the next line and make the asert pass:
            // Joker.MakePlan("Destroy Batman");

            Assert.AreEqual("Destroy Batman", Joker.Mission);
            Assert.AreEqual("Steal the batmobile", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Drive batmobile to Central Park", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Cause accident involving catwoman", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Escape from Central Park", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Convince Batman he harmed Catwoman", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Get Batman to reveal his secret identity", Joker.RetrieveNextStepOfPlan());
            Assert.AreEqual("Put Bruce Wayne in Jail", Joker.RetrieveNextStepOfPlan());

        }