public void TestParamConverterInt32ToInt32() { object obj = Int32.MaxValue; var result = ParamConverter.ConvertTo(obj, "Int32"); Assert.Equal(Int32.MaxValue, result); }
public void TestParamConverterStringToString() { object obj = "Str"; var result = ParamConverter.ConvertTo(obj, "String"); Assert.Equal("Str", result); }
public void TestParamConverterString() { object obj = Int32.MaxValue; var result = ParamConverter.ConvertTo(obj, "String"); Assert.Equal(Int32.MaxValue.ToString(), result); }