/// <summary> /// Initializes a new instance of the EncoderEscapingFallbackBuffer class /// using the value of a EncoderEscapingFallback object. /// </summary> /// <param name="fallback">A EncoderEscapingFallback object.</param> public EncoderEscapingFallbackBuffer(EncoderEscapingFallback fallback) { Buffer = new ArraySegment <char>(Array.Empty <char>()); FallbackRef = fallback; }
public void ConstructNormally() { var fallback = new EncoderEscapingFallback("&#{0};"); Assert.IsInstanceOfType(fallback, typeof(EncoderFallback)); }