mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
* Add support for RetainHandling. * Add support for No Local. * Add support for _SubscriptionIdentifier_. * Add more Unit Tests. * Update docs.
18 lines
495 B
C#
18 lines
495 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.Tests.Mockups
|
|
{
|
|
public sealed class MqttPacketAsserts
|
|
{
|
|
public void AssertIsConnectPacket(MqttBasePacket packet)
|
|
{
|
|
Assert.AreEqual(packet.GetType(), typeof(MqttConnectPacket));
|
|
}
|
|
|
|
public void AssertIsConnAckPacket(MqttBasePacket packet)
|
|
{
|
|
Assert.AreEqual(packet.GetType(), typeof(MqttConnAckPacket));
|
|
}
|
|
}
|
|
} |