public void JsonFactoryGetIgnoredPropertiesReturnsListOfIgnoredProperties() { var propList = JsonFactory.GetIgnoredProperties(new SampleSObject()); var ignoreList = string.Join(", ", propList.OrderBy(p => p)); Assert.AreEqual("IgnoredDate, IgnoredString", ignoreList); }
public void JsonFactoryGetIgnoredPropertiesDoesntThrowANullReferenceException() { var propList = JsonFactory.GetIgnoredProperties(null); Assert.NotNull(propList); Assert.IsEmpty(propList); }