Exemple #1
0
        public void Hello_Null_ReturnsThere()
        {
            string sentence = Say.Hello(null);

            Assert.AreEqual("Hello, there!", sentence);
        }
 public void Calling_Say_Hello_Returns_Hello()
 {
     Assert.Equal("Hello", Say.Hello());
 }
Exemple #3
0
        public void Hello_Name_ReturnsThere()
        {
            string sentence = Say.Hello("Name");

            Assert.AreEqual("Hello, Name!", sentence);
        }
 static void Main(string[] args)
 {
     Console.WriteLine(Say.Hello());
 }