public void Contains_correct_settings_interface() { var settings = JsonKnownTypesSettingsManager.GetDiscriminatorValues <ISettings>(); Assert.True(settings.Count == 0); Assert.AreEqual(settings.FieldName, "name"); }
public void Settings_are_correct() { var settings = JsonKnownTypesSettingsManager.GetDiscriminatorValues <ParentClass>(); Assert.True(settings.Count == 3); Assert.AreEqual(settings.FieldName, DiscriminatorName); }
public void Throw_an_exception() => Assert.Throws <JsonKnownTypesException>(delegate { JsonKnownTypesSettingsManager.GetDiscriminatorValues <Settings>(); });