You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 line
615 B

  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using MQTTnet.Formatter;
  3. using MQTTnet.Tests;
  4. namespace MQTTnet.AspNetCore.Tests
  5. {
  6. [TestClass]
  7. public class MqttPacketSerializerTestsWithSpanBasedReader : MqttPacketSerializer_Tests
  8. {
  9. protected override IMqttPacketBodyReader ReaderFactory(byte[] data)
  10. {
  11. var result = new SpanBasedMqttPacketBodyReader();
  12. result.SetBuffer(data);
  13. return result;
  14. }
  15. protected override IMqttPacketWriter WriterFactory()
  16. {
  17. return new SpanBasedMqttPacketWriter();
  18. }
  19. }
  20. }