예제 #1
0
        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);
        }
예제 #2
0
 private Result <string> CallIsNotEmpty(object self, string prop, string result)
 {
     return(CommonMacros.IsNotEmpty(SdmapCompilerContext.CreateEmpty(), "", self, new[] { prop, result }));
 }