Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
mregen committed Jul 13, 2024
1 parent 603fbec commit f9ca93a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Source/MQTTnet.Tests/Formatter/MqttBufferReader_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,6 @@ public void Read_Remaining_Data_From_Larger_Buffer()
Assert.AreEqual(5, remainingData.Length);
}

[TestMethod]
public void Read_Remaining_Payload_From_Larger_Buffer()
{
var buffer = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };

var reader = new MqttBufferReader();

// The used buffer contains more data than used!
reader.SetBuffer(buffer, 0, 5);

// This should only read 5 bytes even if more data is in the buffer
// due to custom bounds.
using var remainingData = reader.ReadBufferedPayload();

Assert.IsTrue(reader.EndOfStream);
Assert.AreEqual(0, reader.BytesLeft);
Assert.AreEqual(5, remainingData.Sequence.Length);
}

[TestMethod]
public void Read_Various_Positions_and_Offsets()
Expand Down

0 comments on commit f9ca93a

Please sign in to comment.