public void SayHello() { var helloWorld = new HelloWorld(); var text = helloWorld.SayHello(); var expected = string.Format( CultureInfo.InvariantCulture, "Hello world from: {0} [{1}]", AssemblyName(typeof(HelloWorld).Assembly), AssemblyVersion(typeof(HelloWorld).Assembly)); Assert.AreEqual(expected, text); }
/// <summary> /// The entry method for the application. /// </summary> static void Main() { var helloWorld = new HelloWorld(); System.Console.WriteLine(helloWorld.SayHello()); }