Fix build errors.

This commit is contained in:
Christian
2021-11-13 10:28:56 +01:00
parent b5b713570f
commit 28310c69bb
4 changed files with 14 additions and 17 deletions
@@ -25,6 +25,7 @@ namespace MQTTnet.Tests.Server
var session = new MqttSession(
"",
false,
new ConcurrentDictionary<object, object>(),
options,
eventContainer,
@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -45,7 +45,7 @@ namespace MQTTnet.Tests.Server
{
e.ApplicationMessage.Payload =
Encoding.UTF8.GetBytes(
e.SessionItems["default_payload"] as string ?? String.Empty);
e.SessionItems["default_payload"] as string ?? string.Empty);
return Task.CompletedTask;
};
@@ -192,7 +192,7 @@ namespace MQTTnet.Tests.Server
{
c.AutoAcknowledge = false;
++count;
Console.WriteLine("process");
System.Console.WriteLine("process");
return Task.CompletedTask;
};