Shouldly
Search…
Shouldly
Overview
Contributing
Documentation
Getting Started
Configuration
Equality
String
ShouldBe
Match
Contain
Null and Empty
StartWith
EndWith
Enumerable
Dictionary
Exceptions
SatisfyAllConditions
CompleteIn
DynamicShould
Upgrade 3 to 4
Powered By
GitBook
ShouldBe
1
var
target
=
"Homer"
;
2
target
.
ShouldBe
(
"Bart"
);
Copied!
snippet source
|
anchor
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!
snippet source
|
anchor
Exception
1
target
2
should not be
3
"Bart"
4
but was
Copied!
Documentation - Previous
String
Next
Match
Last modified
1yr ago
Copy link
Contents
ShouldNotBe