Exemplo n.º 1
0
        public void JsonFactoryGetIgnoredPropertiesReturnsListOfIgnoredProperties()
        {
            var propList   = JsonFactory.GetIgnoredProperties(new SampleSObject());
            var ignoreList = string.Join(", ", propList.OrderBy(p => p));

            Assert.AreEqual("IgnoredDate, IgnoredString", ignoreList);
        }
Exemplo n.º 2
0
        public void JsonFactoryGetIgnoredPropertiesDoesntThrowANullReferenceException()
        {
            var propList = JsonFactory.GetIgnoredProperties(null);

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