コード例 #1
0
        private void AssertNoSerializationName(IMetaElement type)
        {
            Assert.IsNotNull(type);
            var serializationInfo = type.GetExtension <SerializationInformation>();

            Assert.IsNull(serializationInfo);
        }
コード例 #2
0
        private void AssertSerializationName(IMetaElement type, string serializedName)
        {
            Assert.IsNotNull(type);
            var serializationInfo = type.GetExtension <SerializationInformation>();

            Assert.IsNotNull(serializationInfo);
            Assert.AreEqual(serializationInfo.SerializationName, serializedName);
            Assert.IsFalse(serializationInfo.IsDefault);
        }