Пример #1
0
        public void JsonFactoryGetIgnoredPropertiesReturnsListOfIgnoredProperties()
        {
            var propList   = JsonFactory.GetIgnoredProperties(new SampleSObject());
            var ignoreList = string.Join(", ", propList.OrderBy(p => p));

            Assert.AreEqual("IgnoredDate, IgnoredString", ignoreList);
        }
Пример #2
0
        public void JsonFactoryGetIgnoredPropertiesDoesntThrowANullReferenceException()
        {
            var propList = JsonFactory.GetIgnoredProperties(null);

            Assert.NotNull(propList);
            Assert.IsEmpty(propList);
        }