Rename tests.

This commit is contained in:
Christian Kratky
2019-04-03 23:44:48 +02:00
parent 2267770a72
commit a8db0dd3d6
17 changed files with 101 additions and 22 deletions
@@ -0,0 +1,25 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MQTTnet.Formatter;
namespace MQTTnet.Tests
{
[TestClass]
public class MqttPacketWriter_Tests
{
[TestMethod]
public void WritePacket()
{
var writer = new MqttPacketWriter();
Assert.AreEqual(0, writer.Length);
writer.WriteWithLengthPrefix("1234567890");
Assert.AreEqual(10 + 2, writer.Length);
writer.WriteWithLengthPrefix(new byte[300]);
Assert.AreEqual(300 + 2 + 12, writer.Length);
writer.WriteWithLengthPrefix(new byte[5000]);
Assert.AreEqual(5000 + 2 + 300 + 2 + 12, writer.Length);
}
}
}