public void TestMethodForGenericMethodString(string a, string b, string c) { string expected = "44"; GenericsMain genericsMain = new GenericsMain(); string result = genericsMain.getMax <string>(a, b, c); Assert.AreEqual(expected, result); }
public void TestMethodForGenericMethodDouble(double a, double b, double c) { double expected = 4.4; GenericsMain genericsMain = new GenericsMain(); double result = genericsMain.getMax <double>(a, b, c); Assert.AreEqual(expected, result); }
public void TestMethodForGenericMethodInt(int a, int b, int c) { int expected = 4; GenericsMain genericsMain = new GenericsMain(); int result = genericsMain.getMax <int>(a, b, c); Assert.AreEqual(expected, result); }
public void TestMethodForStringMax() { string expected = "44"; GenericsMain program = new GenericsMain(); string result = program.getStringMax("22", "44", "33"); Assert.AreEqual(expected, result); }
public void TestMethodForDoubleMax() { double expected = 9.3; GenericsMain program = new GenericsMain(); double result = program.getDoubleMax(3.2, 9.3, 3.4); Assert.AreEqual(expected, result); }
public void TestMethodForIntMax() { int expected = 9; GenericsMain program = new GenericsMain(); int result = program.getIntMax(3, 9, 3); Assert.AreEqual(expected, result); }