Skip to content

Commit

Permalink
Add basic MEDI plugin unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhoek committed Apr 8, 2024
1 parent a75b381 commit 9e21d55
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<ITraceListener>();

var plugin = loader.LoadPlugin("Reqnroll.Microsoft.Extensions.DependencyInjection.ReqnrollPlugin.dll", listener.Object, It.IsAny<bool>());

plugin.Should().NotBeNull();
}
}
}
1 change: 1 addition & 0 deletions Tests/Reqnroll.PluginTests/Reqnroll.PluginTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Plugins\Reqnroll.Microsoft.Extensions.DependencyInjection.ReqnrollPlugin\Reqnroll.Microsoft.Extensions.DependencyInjection.ReqnrollPlugin.csproj" />
<ProjectReference Include="..\..\Plugins\Reqnroll.Windsor.ReqnrollPlugin\Reqnroll.Windsor.ReqnrollPlugin.csproj" />
<ProjectReference Include="..\..\Plugins\Reqnroll.MSTest.ReqnrollPlugin\Reqnroll.MSTest.ReqnrollPlugin.csproj" />
<ProjectReference Include="..\..\Plugins\Reqnroll.NUnit.ReqnrollPlugin\Reqnroll.NUnit.ReqnrollPlugin.csproj" />
Expand Down

0 comments on commit 9e21d55

Please sign in to comment.