public void PrintGreeting_ReturnGreeting_WhenInitialized() { var console = new HelloWorldAPI.Console(); console.PrintGreeting = "Hello World"; var result = console.PrintGreeting; Assert.That(console.PrintGreeting.Equals(result)); }
static void Main(string[] args) { var writeLocation = ConfigurationManager.AppSettings["WriteToDB"]; var thisConsole = new HelloWorldAPI.Console(); thisConsole.WriteDbConfig = writeLocation; thisConsole.PrintGreeting = "Hello World"; System.Console.WriteLine(thisConsole.PrintGreeting); // System.Console.Write(thisConsole.WriteDbConfig); System.Console.ReadKey(); }