コード例 #1
0
        public void Say_AnotherName_ReturnHelloMessage()
        {
            string name  = "Mary";
            string hello = SayingHello.Say(name);

            Assert.That(hello, Is.EqualTo("Hello, Mary, nice to meet you!"));
        }
コード例 #2
0
        public void Say_PersonName_ReturnHelloMessage()
        {
            string name  = "Brian";
            string hello = SayingHello.Say(name);

            Assert.That(hello, Is.EqualTo("Hello, Brian, nice to meet you!"));
        }
コード例 #3
0
        public void Say_EmptyName_ReturnJustHelloMessageWithoutName()
        {
            string hello = SayingHello.Say(string.Empty);

            Assert.That(hello, Is.EqualTo("Hello, nice to meet you!"));
        }