Example #1
0
        public void Telling_A_Story()
        {
            string story = new MadLib()
                           .Noun("dog")
                           .Verb("walk")
                           .Adverb("quickly")
                           .Adjective("blue")
                           .Story();

            Assert.That(story, Is.EqualTo(
                            "Do you walk your blue dog quickly? That's hilarious!"));
        }
        public void Execute()
        {
            var madLib = new MadLib();

            Console.Write("Enter a noun: ");
            madLib.Noun(Console.ReadLine());

            Console.Write("Enter a verb: ");
            madLib.Verb(Console.ReadLine());

            Console.Write("Enter an adjective: ");
            madLib.Adjective(Console.ReadLine());

            Console.Write("Enter an adverb: ");
            madLib.Adverb(Console.ReadLine());

            Console.WriteLine(madLib.Story());
        }
Example #3
0
        public void Execute()
        {
            var madLib = new MadLib();

            Console.Write("Enter a noun: ");
            madLib.Noun(Console.ReadLine());

            Console.Write("Enter a verb: ");
            madLib.Verb(Console.ReadLine());

            Console.Write("Enter an adjective: ");
            madLib.Adjective(Console.ReadLine());

            Console.Write("Enter an adverb: ");
            madLib.Adverb(Console.ReadLine());

            Console.WriteLine(madLib.Story());
        }
        public void Telling_A_Story()
        {
            string story = new MadLib()
                .Noun("dog")
                .Verb("walk")
                .Adverb("quickly")
                .Adjective("blue")
                .Story();

            Assert.That(story, Is.EqualTo(
                "Do you walk your blue dog quickly? That's hilarious!"));
        }