瀏覽代碼

Add Unit Tests.

release/3.x.x
Christian 3 年之前
父節點
當前提交
b103718bd9
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. +14
    -0
      Tests/MQTTnet.Core.Tests/TopicFilterComparer_Tests.cs

+ 14
- 0
Tests/MQTTnet.Core.Tests/TopicFilterComparer_Tests.cs 查看文件

@@ -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()
{


Loading…
取消
儲存