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.
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?
dnu install Nilgiri
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.
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();
- Equal
- Not
- Be
- A/An
- Ok
- True
- False
- Null
- Empty
dnu restore
dnu build Nilgiri
cd Nilgiri.Tests; dnx test