Example #1
0
        public void GetPropertyDumpAttribute2()
        {
            var pi = typeof(Test2).GetProperty("Property");

            var dumpAttribute = PropertyDumpResolver.GetPropertyDumpAttribute(pi);

            Assert.AreEqual(new DumpAttribute(0), dumpAttribute);
        }
Example #2
0
        public void GetPropertyDumpAttribute1()
        {
            var pi = typeof(Test1).GetProperty("Property");

            var dumpAttribute = PropertyDumpResolver.GetPropertyDumpAttribute(pi);

            Assert.AreEqual(DumpAttribute.Default, dumpAttribute);
        }
Example #3
0
        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);
        }