public void GenericTypeCanGetTheGenericArgumentName() { var helloCat = new SayHello <Cat> (); //Assert.AreEqual (FILL_ME_IN, helloCat.HelloMessage ()); Assert.AreEqual("Hola Cat", helloCat.HelloMessage()); }
public void GenericTypeCanBeUsedWithAnyTypeEvenPrimitives() { var helloInt = new SayHello <int> (); //Assert.AreEqual (FILL_ME_IN, helloInt.HelloMessage ()); Assert.AreEqual("Hola " + typeof(int).ToString().Split('.').GetValue(1), helloInt.HelloMessage()); }
public void GenericTypeCanBeUsedWithAnyTypeEvenPrimitives() { var helloInt = new SayHello <int> (); Assert.AreEqual("Hello Int32", helloInt.HelloMessage()); }