private void AssertNoSerializationName(IMetaElement type) { Assert.IsNotNull(type); var serializationInfo = type.GetExtension <SerializationInformation>(); Assert.IsNull(serializationInfo); }
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); }