Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoertgen committed Feb 13, 2022
1 parent 0197dd7 commit 0a2d59a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions FluentAssertions.Autofac.Tests/ResolveAssertions_Should.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ public void Resolve_As()
containerShould.Resolve<IDisposable>().As(typeof(Dummy));
}

[Fact]
public void Resolve_Named()
{
var containerShould = Configure(builder =>
builder.RegisterType<Dummy>()
.Named<IDisposable>("dummy")
.AsSelf()
).Should();

containerShould.Resolve<Dummy>()
.AsSelf()
.Named<IDisposable>("dummy")
.Named("dummy", typeof(IDisposable));
}

[Fact]
public void Assert_AutoActivation()
{
Expand Down
3 changes: 1 addition & 2 deletions FluentAssertions.Autofac/ResolveAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public void AutoActivate()
}

/// <summary>
/// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />
/// .
/// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />.
/// </summary>
/// <param name="type">The type to resolve</param>
/// <param name="types">Optional types to resolve</param>
Expand Down

0 comments on commit 0a2d59a

Please sign in to comment.