From 9e21d557e622772105f01eaae987843a5327ebab Mon Sep 17 00:00:00 2001 From: Mark Hoek Date: Mon, 8 Apr 2024 21:39:33 +0200 Subject: [PATCH] Add basic MEDI plugin unit test --- ...osoftExtensionsDependencyInjectionTests.cs | 27 +++++++++++++++++++ .../Reqnroll.PluginTests.csproj | 1 + 2 files changed, 28 insertions(+) create mode 100644 Tests/Reqnroll.PluginTests/Infrastructure/MicrosoftExtensionsDependencyInjectionTests.cs diff --git a/Tests/Reqnroll.PluginTests/Infrastructure/MicrosoftExtensionsDependencyInjectionTests.cs b/Tests/Reqnroll.PluginTests/Infrastructure/MicrosoftExtensionsDependencyInjectionTests.cs new file mode 100644 index 000000000..f15c347c8 --- /dev/null +++ b/Tests/Reqnroll.PluginTests/Infrastructure/MicrosoftExtensionsDependencyInjectionTests.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using FluentAssertions; +using Moq; +using Reqnroll.Plugins; +using Reqnroll.Tracing; +using Xunit; + +namespace Reqnroll.PluginTests.Infrastructure +{ + public class MicrosoftExtensionsDependencyInjectionTests + { + [Fact] + public void LoadPlugin_MicrosoftExtensionsDependencyInjection_ShouldNotBeNull() + { + var loader = new RuntimePluginLoader(); + var listener = new Mock(); + + var plugin = loader.LoadPlugin("Reqnroll.Microsoft.Extensions.DependencyInjection.ReqnrollPlugin.dll", listener.Object, It.IsAny()); + + plugin.Should().NotBeNull(); + } + } +} diff --git a/Tests/Reqnroll.PluginTests/Reqnroll.PluginTests.csproj b/Tests/Reqnroll.PluginTests/Reqnroll.PluginTests.csproj index acd9f7e1c..11a33c4e1 100644 --- a/Tests/Reqnroll.PluginTests/Reqnroll.PluginTests.csproj +++ b/Tests/Reqnroll.PluginTests/Reqnroll.PluginTests.csproj @@ -10,6 +10,7 @@ +