Skip to content

Commit

Permalink
Newest NUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Jan 8, 2024
1 parent 9095669 commit 0712c7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="4.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ public void CanCreateInstanceWithOptions()
{
using var provider = new ElmahIoLoggerProvider(Options.Create(new ElmahIoProviderOptions()));
var logger = provider.CreateLogger("test");
Assert.NotNull(provider);
Assert.NotNull(logger);
Assert.That(provider, Is.Not.Null);
Assert.That(logger, Is.Not.Null);
}

[Test]
public void CanCreateInstanceWithOnlyRequiredParameters()
{
using var provider = new ElmahIoLoggerProvider("apiKey", Guid.NewGuid());
var logger = provider.CreateLogger("test");
Assert.NotNull(provider);
Assert.NotNull(logger);
Assert.That(provider, Is.Not.Null);
Assert.That(logger, Is.Not.Null);
}
}
}

0 comments on commit 0712c7d

Please sign in to comment.