public void GetNestedPropOk() { var val = new { A = new { A = 3 } }; var prop = CommonMacros.GetProp(val, "A.A"); Assert.NotNull(prop); }
public void GetNotExistPropWillReturnNull() { var val = new { A = 3 }; var prop = CommonMacros.GetProp(val, "A.A"); Assert.Null(prop); }
public void GetSimplePropOk() { var val = new { A = 3 }; var prop = CommonMacros.GetProp(val, "A"); Assert.NotNull(prop); }
public void GetNotExistPropWillNotThrow() { var val = new { A = 3 }; var prop = CommonMacros.GetProp(val, "B.C.D"); }