Пример #1
0
        public void PhraseDefaultConstructorTest()
        {
            // arrange
            string expected = "Hello, World!";
            string actual;
            Phrase hello = new Phrase();

            // act
            actual = hello.get();

            // assert
            Assert.AreEqual(actual, expected);
        }
Пример #2
0
        public void PhraseOverloadedConstructorTest()
        {
            // arrange
            string expected = "Hello, James!";
            string actual;
            Phrase hello = new Phrase("Hello, James!");

            // act
            actual = hello.get();

            // assert
            Assert.AreEqual(actual, expected);
        }
Пример #3
0
 static void Main(string[] args)
 {
     // we instance and use our phrase library contained in our local NuGet package source
     Phrase hello = new Phrase();
     hello.say();
 }