Skip to content

NUnit assertions to help you keep an eye on your project references.

License

Notifications You must be signed in to change notification settings

kmckee/ArrowAsserts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arrow Asserts

Adds a "Is.Referencing" assertion to NUnit 3.

This prevents large architectural changes from sneaking by unnoticed.

Available on Nuget.org: https://www.nuget.org/packages/ArrowAsserts

Examples

Assert.That("MyProject.UI", Is.Not.Referencing("MyProject.Data"));

Note that if you want to assert that something Is.Referencing something, you'll need to explicitly use the ArrowAssert.Is:

using NUnit.Framework;
using Is = ArrowAsserts.Is;

namespace ClassLibrary1
{
    [TestFixture]
    public class Class1
    {
        [Test]
        public void Test()
        {
            Assert.That("ClassLibrary1", Is.Referencing("nunit.framework"));
        }
    }
}

About

NUnit assertions to help you keep an eye on your project references.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages