public void FindingMaxFloatNumberUsingGenerics() { double maxNumber = MaxNumberCheck.findMax(10.0, 20.0, 30.0); Assert.AreEqual(30.0, maxNumber); }
public void FindingMaxStringUsingGenerics() { string maxString = MaxNumberCheck.findMax("Apple", "Peach", "Banana"); Assert.AreEqual("Peach", maxString); }
public void FindingMaxNumberUsingGenerics() { int maxNumber = MaxNumberCheck.findMax(10, 20, 30); Assert.AreEqual(30, maxNumber); }