public void GetGetMoreMessageEncoder_should_return_a_GetMoreMessageJsonEncoder() { using (var textWriter = new StringWriter()) { var encoderFactory = new JsonMessageEncoderFactory(null, textWriter, __messageEncoderSettings); var encoder = encoderFactory.GetGetMoreMessageEncoder(); encoder.Should().BeOfType <GetMoreMessageJsonEncoder>(); } }
public void GetGetMoreMessageEncoder_should_return_a_GetMoreMessageJsonEncoder() { using (var stringWriter = new StringWriter()) using (var jsonWriter = new JsonWriter(stringWriter)) { var encoderFactory = new JsonMessageEncoderFactory(null, jsonWriter); var encoder = encoderFactory.GetGetMoreMessageEncoder(); encoder.Should().BeOfType <GetMoreMessageJsonEncoder>(); } }