Skip to content

A NUnit addin that uses FakeItEasy! to inject fakes into test methods.

Notifications You must be signed in to change notification settings

yln/FakeInjectionAddin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FakeInjectionAddin

A NUnit addin that uses FakeItEasy! to inject fakes into test methods.

Setup

Copy FakeInjectionAddin.dll and FakeItEasy.dll into <NUnit-directory>/addins.

Example

[Test]
public void Test (IFoo foo)
{
  // Use fake in test.
  A.CallTo (() => foo.Bar()).Returns ("baz");

  // ...
}

Require Addin (optional)

You may use the RequiredAddin attribute to signal test runners that the addin is required to run your tests. This step is optional but may be helpful to avoid confusion.

[assembly: NUnit.Framework.RequiredAddin("FakeInjectionAddin")]

About

A NUnit addin that uses FakeItEasy! to inject fakes into test methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages