Add test for simple server and client execution.

This commit is contained in:
Christian Kratky
2018-06-03 22:04:43 +02:00
parent 1cbec27b7f
commit 66ebdfd61a
2 changed files with 32 additions and 0 deletions
+5
View File
@@ -20,6 +20,7 @@ namespace MQTTnet.TestApp.NetCore
Console.WriteLine("3 = Start performance test");
Console.WriteLine("4 = Start managed client");
Console.WriteLine("5 = Start public broker test");
Console.WriteLine("6 = Start server & client");
var pressedKey = Console.ReadKey(true);
if (pressedKey.KeyChar == '1')
@@ -42,6 +43,10 @@ namespace MQTTnet.TestApp.NetCore
{
Task.Run(PublicBrokerTest.RunAsync);
}
else if (pressedKey.KeyChar == '6')
{
Task.Run(ServerAndClientTest.RunAsync);
}
Thread.Sleep(Timeout.Infinite);
}