public void testTeaParty()
        {
            ITeaPartyKata kata = new TeaPartyKata();

            Assert.AreEqual("Hello Ms. Austen", kata.Welcome("Austen", true, false));
            Assert.AreEqual("Hello Mr. Orwell", kata.Welcome("Orwell", false, false));
            Assert.AreEqual("Hello Sir Newton", kata.Welcome("Newton", false, true));
        }
示例#2
0
    public static void Main()
    {
        TeaPartyKata kata = new TeaPartyKata();

        Console.WriteLine(kata.Welcome("Done", false, false));
        Console.WriteLine(kata.Welcome("Willie", true, false));
        Console.WriteLine(kata.Welcome("John", false, true));
    }