File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
FluentAssertions.Autofac.Tests Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,21 @@ public void Resolve_As()
37
37
containerShould . Resolve < IDisposable > ( ) . As ( typeof ( Dummy ) ) ;
38
38
}
39
39
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
+
40
55
[ Fact ]
41
56
public void Assert_AutoActivation ( )
42
57
{
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ public void AutoActivate()
75
75
}
76
76
77
77
/// <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" />.
80
79
/// </summary>
81
80
/// <param name="type">The type to resolve</param>
82
81
/// <param name="types">Optional types to resolve</param>
You can’t perform that action at this time.
0 commit comments