You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
621 B

  1. using System;
  2. using System.Threading.Tasks;
  3. using Microsoft.VisualStudio.TestTools.UnitTesting;
  4. using MQTTnet.Formatter;
  5. using MQTTnet.Tests.Mockups;
  6. namespace MQTTnet.Tests
  7. {
  8. public abstract class BaseTestClass
  9. {
  10. public TestContext TestContext { get; set; }
  11. protected TestEnvironment CreateTestEnvironment(MqttProtocolVersion protocolVersion = MqttProtocolVersion.V311)
  12. {
  13. return new TestEnvironment(TestContext, protocolVersion);
  14. }
  15. protected Task LongTestDelay()
  16. {
  17. return Task.Delay(TimeSpan.FromSeconds(1));
  18. }
  19. }
  20. }