Skip to content

Commit 0a2d59a

Browse files
committed
Minor cleanup
1 parent 0197dd7 commit 0a2d59a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

FluentAssertions.Autofac.Tests/ResolveAssertions_Should.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ public void Resolve_As()
3737
containerShould.Resolve<IDisposable>().As(typeof(Dummy));
3838
}
3939

40+
[Fact]
41+
public void Resolve_Named()
42+
{
43+
var containerShould = Configure(builder =>
44+
builder.RegisterType<Dummy>()
45+
.Named<IDisposable>("dummy")
46+
.AsSelf()
47+
).Should();
48+
49+
containerShould.Resolve<Dummy>()
50+
.AsSelf()
51+
.Named<IDisposable>("dummy")
52+
.Named("dummy", typeof(IDisposable));
53+
}
54+
4055
[Fact]
4156
public void Assert_AutoActivation()
4257
{

FluentAssertions.Autofac/ResolveAssertions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public void AutoActivate()
7575
}
7676

7777
/// <summary>
78-
/// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />
79-
/// .
78+
/// Asserts that the specified implementation type(s) can be resolved from the current <see cref="IComponentContext" />.
8079
/// </summary>
8180
/// <param name="type">The type to resolve</param>
8281
/// <param name="types">Optional types to resolve</param>

0 commit comments

Comments
 (0)