mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
22 lines
513 B
C#
22 lines
513 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using MQTTnet.Tests.Mockups;
|
|
|
|
namespace MQTTnet.Tests
|
|
{
|
|
public abstract class BaseTestClass
|
|
{
|
|
public TestContext TestContext { get; set; }
|
|
|
|
protected TestEnvironment CreateTestEnvironment()
|
|
{
|
|
return new TestEnvironment(TestContext);
|
|
}
|
|
|
|
protected Task LongDelay()
|
|
{
|
|
return Task.Delay(TimeSpan.FromSeconds(1));
|
|
}
|
|
}
|
|
} |