public void ValueIsNotEmpty() { var val = CommonMacros.IsNotEmpty(SdmapCompilerContext.CreateEmpty(), "", new { A = DateTime.Now }, new object[] { "A", "Ok" }); Assert.True(val.IsSuccess); Assert.Equal("Ok", val.Value); }
private Result <string> CallIsNotEmpty(object self, string prop, string result) { return(CommonMacros.IsNotEmpty(SdmapCompilerContext.CreateEmpty(), "", self, new[] { prop, result })); }