public void ReturnsCorrectValue()
            {
                var serializationManager = new SerializationManager();

                var properties = serializationManager.GetCatelPropertyNames(typeof(TestModel)).ToArray();

                Assert.AreEqual(2, properties.Length);
                Assert.AreEqual("IncludedCatelProperty", properties[0]);
                Assert.AreEqual("ExcludedCatelProperty", properties[1]);
            }
예제 #2
0
            public void ThrowsArgumentNullExceptionForNullType()
            {
                var serializationManager = new SerializationManager();

                ExceptionTester.CallMethodAndExpectException <ArgumentNullException>(() => serializationManager.GetCatelPropertyNames(null));
            }