Skip to content

brycekbargar/Nilgiri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not in active Dev

Call it another abandonware project from me...
I really wanted to learn dnx and travis ci + .net and publishing to nuget. But I really don't want to write/maintain an "enterprise" software package. I just kind of want to make music...

So I'm no longer devving on this, though if you want to see how .net works on a mac in atom it's a reasonable example.

Nilgiri

Travis CI codecov.io Nuget

Chai.js style Expect assertions for .NET
nilgiri is some sort of black tea but it was the only one that started with 'n'...

I really liked the Expect BDD Syntax in Chai.js when I dabbled in Node.
Why not bring it to .NET?

To Install

dnu install Nilgiri

To Use

using static Nilgiri.Assertions;

Expect(1).To.Equal(1);
Expect(true).To.Not.Be.False();

There are complete examples in the Nilgiri.Tests/Examples folder.

Legacy .NET Support

For c# < 6.0 there is no using static so things are a little different. This is already Deprecated(!) and just here until I can use c# 6 at work.

using Nilgiri.LegacyAssertions;

E.xpect(1).To.Equal(1);
E.xpect(true).To.Not.Be.False();

Currently Implemented

  1. Equal
  2. Not
  3. Be
  4. A/An
  5. Ok
  6. True
  7. False
  8. Null
  9. Empty

To Build/Test

dnu restore
dnu build Nilgiri
cd Nilgiri.Tests; dnx test

About

Chai.js style assertions for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published