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

            Assert.Equal(replacement.Length, exception.MaxCharCount);
            Assert.Equal(replacement, exception.DefaultString);
            Assert.Equal(replacement.GetHashCode(), exception.GetHashCode());
        }
        public void Ctor_Empty()
        {
            DecoderReplacementFallback fallback = new DecoderReplacementFallback();

            Assert.Equal(1, fallback.MaxCharCount);
            Assert.Equal("?", fallback.DefaultString);
            Assert.Equal("?".GetHashCode(), fallback.GetHashCode());
        }