Skip to content

Commit

Permalink
Unity does not support Resolve All
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Nov 24, 2020
1 parent 5dfe4f0 commit 8419879
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Prism.Unity.Extensions.Tests/ContainerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ public void ResolveTakesLastIn()
Assert.IsType<AltGenericService>(c.Resolve<IGenericService>());
}

// Unity does not currently support Resolve All
#if false
[Fact]
public void ResolveEnumerableResolvesAll()
{
Expand All @@ -529,6 +531,7 @@ public void ResolveEnumerableResolvesAll()
Assert.Contains(all, x => x is GenericService);
Assert.Contains(all, x => x is AltGenericService);
}
#endif

public static IFoo FooFactory() => new Foo { Message = "expected" };

Expand Down

0 comments on commit 8419879

Please sign in to comment.