Shouldly
Search…
ShouldBe
1
var target = "Homer";
2
target.ShouldBe("Bart");
Copied!
Exception
1
target
2
should be
3
"Bart"
4
but was
5
"Homer"
6
difference
7
Difference | | | | | |
8
| \|/ \|/ \|/ \|/ \|/
9
Index | 0 1 2 3 4
10
Expected Value | B a r t
11
Actual Value | H o m e r
12
Expected Code | 66 97 114 116
13
Actual Code | 72 111 109 101 114
Copied!

ShouldNotBe

1
var target = "Bart";
2
target.ShouldNotBe("Bart");
Copied!
Exception
1
target
2
should not be
3
"Bart"
4
but was
Copied!
Copy link
Contents
ShouldNotBe