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.
 
 
 
 

21 rivejä
503 B

  1. using System.IO;
  2. using System.Threading;
  3. using Microsoft.VisualStudio.TestTools.UnitTesting;
  4. using MQTTnet.Core.Serializer;
  5. namespace MQTTnet.Core.Tests
  6. {
  7. [TestClass]
  8. public class MqttPacketReaderTests
  9. {
  10. [TestMethod]
  11. public void MqttPacketReader_EmptyStream()
  12. {
  13. var memStream = new MemoryStream();
  14. var header = MqttPacketReader.ReadHeaderFromSource(memStream, CancellationToken.None);
  15. Assert.IsNull(header);
  16. }
  17. }
  18. }