-
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from JakeGinnivan/ShouldNotBeDocs
Switched ShouldNotBe docs over to use examples, moved approved files …
- Loading branch information
Showing
30 changed files
with
185 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
src/DocumentationExamples/CodeExamples/ShouldNotBeExamples/DateTime.codeSample.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var date = new DateTime(2000, 6, 1); | ||
date.ShouldNotBe(new DateTime(2000, 6, 1, 1, 0, 1), TimeSpan.FromHours(1.5)); |
7 changes: 7 additions & 0 deletions
7
...ocumentationExamples/CodeExamples/ShouldNotBeExamples/DateTime.exceptionText.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
date | ||
should not be within | ||
01:30:00 | ||
of | ||
1/06/2000 1:00:01 AM | ||
but was | ||
1/06/2000 12:00:00 AM |
2 changes: 2 additions & 0 deletions
2
...DocumentationExamples/CodeExamples/ShouldNotBeExamples/NumericInt.codeSample.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const int one = 1; | ||
one.ShouldNotBe(1); |
4 changes: 4 additions & 0 deletions
4
...umentationExamples/CodeExamples/ShouldNotBeExamples/NumericInt.exceptionText.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
one | ||
should not be | ||
1 | ||
but was |
2 changes: 2 additions & 0 deletions
2
...ocumentationExamples/CodeExamples/ShouldNotBeExamples/NumericLong.codeSample.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const long aLong = 1L; | ||
aLong.ShouldNotBe(1); |
4 changes: 4 additions & 0 deletions
4
...mentationExamples/CodeExamples/ShouldNotBeExamples/NumericLong.exceptionText.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
aLong | ||
should not be | ||
1L | ||
but was |
2 changes: 2 additions & 0 deletions
2
src/DocumentationExamples/CodeExamples/ShouldNotBeExamples/Objects.codeSample.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var theSimpsonsCat = new Cat { Name = "Santas little helper" }; | ||
theSimpsonsCat.Name.ShouldNotBe("Santas little helper"); |
4 changes: 4 additions & 0 deletions
4
...DocumentationExamples/CodeExamples/ShouldNotBeExamples/Objects.exceptionText.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
theSimpsonsCat.Name | ||
should not be | ||
"Santas little helper" | ||
but was |
2 changes: 2 additions & 0 deletions
2
...entationExamples/CodeExamples/ShouldNotBeExamples/TimeSpanExample.codeSample.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var timeSpan = TimeSpan.FromHours(1); | ||
timeSpan.ShouldNotBe(timeSpan.Add(TimeSpan.FromHours(1.1d)), TimeSpan.FromHours(1.5d)); |
7 changes: 7 additions & 0 deletions
7
...ationExamples/CodeExamples/ShouldNotBeExamples/TimeSpanExample.exceptionText.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
timeSpan | ||
should not be within | ||
01:30:00 | ||
of | ||
02:06:00 | ||
but was | ||
01:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.