mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-28 01:02:37 +08:00
Add Unit Tests.
This commit is contained in:
@@ -6,6 +6,20 @@ namespace MQTTnet.Tests
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
public class TopicFilterComparer_Tests
|
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]
|
[TestMethod]
|
||||||
public void TopicFilterComparer_DirectMatch()
|
public void TopicFilterComparer_DirectMatch()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user