public void should_automatically_resolve_parameter_type() { string actualReturnValue = GenericMethodDemoClass.ResolvableGenericMethod(new Duck()); // correct the variable value to fix the test const string expectedReturnValue = ""; Assert.Equal(expectedReturnValue, actualReturnValue); }
public void should_automatically_resolve_parameter_type() { // expicitly identify the type according to argument type string actualReturnValue = GenericMethodDemoClass.ResolvableGenericMethod(new Duck()); // correct the variable value to fix the test const string expectedReturnValue = "ResolvableGenericMethod(T) called. T is Duck"; Assert.Equal(expectedReturnValue, actualReturnValue); }