public void ReturnsCorrectProperties() { var serializationManager = new SerializationManager(); var propertiesToSerialize = serializationManager.GetPropertiesToSerialize(typeof(TestModel)).ToArray(); Assert.AreEqual(2, propertiesToSerialize.Length); Assert.AreEqual("IncludedCatelProperty", propertiesToSerialize[0]); Assert.AreEqual("IncludedRegularProperty", propertiesToSerialize[1]); }
public void ThrowsArgumentNullExceptionForNullType() { var serializationManager = new SerializationManager(); ExceptionTester.CallMethodAndExpectException<ArgumentNullException>(() => serializationManager.GetPropertiesToSerialize(null)); }