예제 #1
0
 /// <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;
 }
예제 #2
0
        public void ConstructNormally()
        {
            var fallback = new EncoderEscapingFallback("&#{0};");

            Assert.IsInstanceOfType(fallback, typeof(EncoderFallback));
        }