Add Unit Tests.

This commit is contained in:
Christian
2021-01-29 23:17:16 +01:00
parent b88924bce5
commit b103718bd9
@@ -6,6 +6,20 @@ namespace MQTTnet.Tests
[TestClass]
public class TopicFilterComparer_Tests
{
[TestMethod]
public void TopicFilterComparer_Plus_Match_With_Separator_Only()
{
//A Topic Name or Topic Filter consisting only of the ‘/’ character is valid
CompareAndAssert("A", "+", true);
}
[TestMethod]
public void TopicFilterComparer_Hash_Match_With_Separator_Only()
{
//A Topic Name or Topic Filter consisting only of the ‘/’ character is valid
CompareAndAssert("/", "#", true);
}
[TestMethod]
public void TopicFilterComparer_DirectMatch()
{