Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The entry method for the application.
 /// </summary>
 static void Main()
 {
     var helloWorld = new HelloWorld();
     System.Console.WriteLine(helloWorld.SayHello());
 }