public void Ctor_String(string replacement) { EncoderReplacementFallback fallback = new EncoderReplacementFallback(replacement); Assert.Equal(replacement.Length, fallback.MaxCharCount); Assert.Equal(replacement, fallback.DefaultString); Assert.Equal(replacement.GetHashCode(), fallback.GetHashCode()); }
public void Ctor_Empty() { EncoderReplacementFallback exception = new EncoderReplacementFallback(); Assert.Equal(1, exception.MaxCharCount); Assert.Equal("?", exception.DefaultString); Assert.Equal("?".GetHashCode(), exception.GetHashCode()); }