Skip to content

No longer supported | xUnit extension for support Photosphere.DependencyInjection.

License

Notifications You must be signed in to change notification settings

mchechulnikov/photosphere-di-xunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photosphere.DependencyInjection.xUnit

xUnit extension for support Photosphere.DependencyInjection.

Status

Windows build Status NuGet license

Install

PM> Install-Package Photosphere.DependencyInjection.xUnit

How to use

Just use InjectDependency instead InlineData into your theories.

[Theory]
[InjectDependency(42, "foo")]
void Test(int someNumber, string someString, IFoo foo, IBar bar)
{
  Assert.Equal(42, someNumber);
  Assert.Equal("foo", someString);
  Assert.NotNull(foo);
  Assert.NotNull(bar);
}

About

No longer supported | xUnit extension for support Photosphere.DependencyInjection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages