Skip to content

Instantly share code, notes, and snippets.

Avatar
🦇
Flipping switches

Kalle Wallin iHaveBecomeDeath

🦇
Flipping switches
View GitHub Profile
@iHaveBecomeDeath
iHaveBecomeDeath / AssertionExtensions.cs
Created Sep 13, 2016
NUnit assertion extensions, write test code from left to right
View AssertionExtensions.cs
// Some simple extensions I lug around to semantically simplify my test writing
// instead of saying "assert that this and that are equal, using some formula"
// you can say (1 == 1).ShouldBeTrue(), or 1.ShouldEqual(1);
// Some methods return the object in question, so you can chain assertions.
// Using System
// Using NUnit.Framework
public static class AssertionExtensions
{
View keybase.md

Keybase proof

I hereby claim:

  • I am ihavebecomedeath on github.
  • I am silverskin (https://keybase.io/silverskin) on keybase.
  • I have a public key whose fingerprint is 51F7 5F9E 3A7C C757 2C6E E8FD F17E C047 A387 79E9

To claim this, I am signing this object: