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