Skip to content

Instantly share code, notes, and snippets.

View iHaveBecomeDeath's full-sized avatar
🦇
Flipping switches

Kalle Wallin iHaveBecomeDeath

🦇
Flipping switches
View GitHub Profile

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:

@iHaveBecomeDeath
iHaveBecomeDeath / AssertionExtensions.cs
Created September 13, 2016 12:12
NUnit assertion extensions, write test code from left to right
// 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
{
@iHaveBecomeDeath
iHaveBecomeDeath / token-to-clipboard.ps1
Created May 22, 2023 06:37
Get Azure Access Token to clipboard in PowerShell
Az login
Get-AzAccessToken | Select-Object -ExpandProperty Token | Set-Clipboard