public void TestMethod_CharAt1() { var classInfo = ClassInfo <Dummy> .Create(new Dictionary <string, dynamic> { { MessageField, "012345789" } }); ExpressionTest <Dummy> .CreateMethodExpression(nameof(Dummy.CharAt1), classInfo, "_message[1] == '1'").TestAndVerify(); }
public void TestMethod_GetMessage_WithUserDefinedFields() { var classInfo = ClassInfo <Dummy> .Create(new Dictionary <string, object> { { MessageField, "CustomMessage" } }); ExpressionTest <Dummy> .CreateTest(MessageField, classInfo, "CustomMessage").TestAndVerify(); }