예제 #1
0
        public void CtorTest1()
        {
            ContentWrapperAttribute attr = new ContentWrapperAttribute(typeof(ValueSerializer));

            Assert.AreEqual("ValueSerializer", attr.ContentWrapper.Name);

            attr = new ContentWrapperAttribute(null);
            Assert.IsNull(attr.ContentWrapper);
        }
예제 #2
0
        public void TypeId()
        {
            ContentWrapperAttribute attr = new ContentWrapperAttribute(typeof(ValueSerializer));

            Assert.AreSame(attr, attr.TypeId);
        }