public void GetUpdateMessageEncoder_should_return_a_UpdateMessageJsonEncoder()
 {
     using (var textWriter = new StringWriter())
     {
         var encoderFactory = new JsonMessageEncoderFactory(null, textWriter, __messageEncoderSettings);
         var encoder        = encoderFactory.GetUpdateMessageEncoder();
         encoder.Should().BeOfType <UpdateMessageJsonEncoder>();
     }
 }
Пример #2
0
 public void GetUpdateMessageEncoder_should_return_a_UpdateMessageJsonEncoder()
 {
     using (var stringWriter = new StringWriter())
         using (var jsonWriter = new JsonWriter(stringWriter))
         {
             var encoderFactory = new JsonMessageEncoderFactory(null, jsonWriter);
             var encoder        = encoderFactory.GetUpdateMessageEncoder();
             encoder.Should().BeOfType <UpdateMessageJsonEncoder>();
         }
 }