public void AddImmutableType() { var settings = new FieldsSettingsBuilder().AddImmutableType<ComplexType>().CreateSettings(); Assert.AreEqual(true, settings.IsImmutable(typeof(ComplexType))); settings = new FieldsSettingsBuilder().AddImmutableType(typeof(ComplexType)).CreateSettings(); Assert.AreEqual(true, settings.IsImmutable(typeof(ComplexType))); }
public void AddImmutableType() { var settings = new FieldsSettingsBuilder().AddImmutableType <ComplexType>().CreateSettings(); Assert.AreEqual(true, settings.IsImmutable(typeof(ComplexType))); settings = new FieldsSettingsBuilder().AddImmutableType(typeof(ComplexType)).CreateSettings(); Assert.AreEqual(true, settings.IsImmutable(typeof(ComplexType))); }