Exemplo n.º 1
0
 public void ReflectionFunctionsGetOfTest(string method, object inputObject, object expected, string message) =>
 Assert.AreEqual(expected, ReflectionFunctions.GetOf(method, inputObject.ToString()).ToString(), message);
Exemplo n.º 2
0
 public void ReflectionFunctionsGetOfMissingStaticMethodTest() => ReflectionFunctions.GetOf("Math.Wrong", null);
Exemplo n.º 3
0
 public void ReflectionFunctionsGetOfNullMethodTest() => ReflectionFunctions.GetOf(null, null);
Exemplo n.º 4
0
 public void ReflectionFunctionsGetOfMissingMethodForStringTest() => ReflectionFunctions.GetOf("Wrong", "hello");
Exemplo n.º 5
0
 public void ReflectionFunctionsGetOfMissingMethodForIntTest() => ReflectionFunctions.GetOf("Wrong", "1");
Exemplo n.º 6
0
 public void ReflectionFunctionsGetOfMissingMethodAndInputTest() => ReflectionFunctions.GetOf("Wrong", null);
Exemplo n.º 7
0
 public void ReflectionFunctionsGetOfMissingClassTest() => ReflectionFunctions.GetOf("Wrong.Wrong", null);
Exemplo n.º 8
0
 public void ReflectionFunctionsGetOfMethodWithoutDecimalParametersTest() => ReflectionFunctions.GetOf("substring(1.0)", "a");