public void GetPropertyDumpAttribute2() { var pi = typeof(Test2).GetProperty("Property"); var dumpAttribute = PropertyDumpResolver.GetPropertyDumpAttribute(pi); Assert.AreEqual(new DumpAttribute(0), dumpAttribute); }
public void GetPropertyDumpAttribute1() { var pi = typeof(Test1).GetProperty("Property"); var dumpAttribute = PropertyDumpResolver.GetPropertyDumpAttribute(pi); Assert.AreEqual(DumpAttribute.Default, dumpAttribute); }
public void GetPropertyDumpAttribute3() { var pi = typeof(Test3).GetProperty("Property"); var dumpAttribute = PropertyDumpResolver.GetPropertyDumpAttribute(pi, typeof(Test3Meta)); var dumpAttribute1 = PropertyDumpResolver.GetPropertyDumpAttribute(pi, typeof(Test3Meta)); Assert.AreEqual(new DumpAttribute(0), dumpAttribute); Assert.AreSame(dumpAttribute, dumpAttribute1); }