public void PhraseDefaultConstructorTest() { // arrange string expected = "Hello, World!"; string actual; Phrase hello = new Phrase(); // act actual = hello.get(); // assert Assert.AreEqual(actual, expected); }
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); }
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(); }