Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cuhsat committed May 15, 2022
2 parents 7feae3a + eb232c1 commit f5d1e9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Caliban.Nano/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public async void Show<T>(Dictionary<string, object>? settings = null) where T :
/// Closes the main window via the window manager.
/// </summary>
[ExcludeFromCodeCoverage]
[SuppressMessage("Performance", "CA1822", Justification = "Intended Behavior")]
public async void Dispose()
{
try
Expand Down
11 changes: 7 additions & 4 deletions tests/Caliban.Nano.Tests/Caliban.Nano.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="coverlet.collector" Version="3.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 8 additions & 2 deletions tests/Caliban.Nano.Tests/Root/BootstrapTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ namespace Caliban.Nano.Tests.Root
[TestClass]
public class BootstrapTests
{
[TestInitialize]
public void Initialize()
{
TypeFinder.Sources.Clear();
}

[TestMethod]
public void BootstrapTest()
{
Expand All @@ -17,11 +23,11 @@ public void BootstrapTest()
Assert.IsNotNull(bootstrap.Container);
Assert.IsInstanceOfType(bootstrap.Container, typeof(NanoContainer));

Assert.AreEqual(TypeFinder.Sources.Count, 1);
Assert.AreEqual(1, TypeFinder.Sources.Count);

bootstrap.AddSource(GetType().Assembly);

Assert.AreEqual(TypeFinder.Sources.Count, 2);
Assert.AreEqual(2, TypeFinder.Sources.Count);

Assert.ThrowsException<TypeLoadException>(() => IoC.Get<IMock>());

Expand Down

0 comments on commit f5d1e9e

Please sign in to comment.