public void GivenADeserializerReceivingCustomOptionsThenDefaultNormalizerIsUsed() { var options = new IniDeserializationOptions(); var serializer = new IniDeserializer(options); Assert.Same(options, serializer.Options); Assert.Same(IniNormalizer.Default, serializer.Normalizer); }
public void GivenADeserializerReceivingCustomParametersThenReferencesAreTheSame() { var options = new IniDeserializationOptions(); var normalizer = new IniNormalizer(); var serializer = new IniDeserializer(options, normalizer); Assert.Same(options, serializer.Options); Assert.Same(normalizer, serializer.Normalizer); }
public void GivenADeserializationOptionsInstanceUsingTheDefaultConstrutorThenFailOnInvalidLinesMustBeTrue() { var options = new IniDeserializationOptions(); Assert.True(options.FailOnInvalidLines); }
public void GivenADeserializationOptionsInstanceUsingTheDefaultConstrutorThenPropertyNameValueDelimiterMustBeEqualSign() { var options = new IniDeserializationOptions(); Assert.Equal('=', options.PropertyNameValueDelimiter); }
public void GivenADeserializationOptionsInstanceUsingTheDefaultConstrutorThenCommentIndicatorMustBeSemicolon() { var options = new IniDeserializationOptions(); Assert.Equal(';', options.CommentIndicator); }
public void GivenADeserializationOptionsInstanceUsingTheDefaultConstrutorThenNormalizeAfterDeserializationMustBeTrue() { var options = new IniDeserializationOptions(); Assert.True(options.NormalizeAfterDeserialization); }