-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/VerifyTests/Verify
- Loading branch information
Showing
24 changed files
with
65 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
\Guid_1\} |
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 @@ | ||
{Guid_1} |
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 @@ | ||
-Guid_1- |
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 @@ | ||
Guid_1\ |
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 @@ | ||
Guid_1} |
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 @@ | ||
Guid_1- |
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 @@ | ||
Guid_1/ |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_end-letters.verified.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 @@ | ||
173535ae-995b-4cc6-a74e-8cd4be57039ca |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_end-numbers.verified.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 @@ | ||
173535ae-995b-4cc6-a74e-8cd4be57039c1 |
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 @@ | ||
Guid_1] |
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 @@ | ||
/Guid_1/ |
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 @@ | ||
a173535ae-995b-4cc6-a74e-8cd4be57039ca |
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 @@ | ||
1173535ae-995b-4cc6-a74e-8cd4be57039c1 |
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 @@ | ||
Guid_1 |
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 @@ | ||
[Guid_1] |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-bslash.verified.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 @@ | ||
\Guid_1 |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-curly.verified.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 @@ | ||
{Guid_1 |
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 @@ | ||
-Guid_1 |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-fslash.verified.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 @@ | ||
/Guid_1 |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-letters.verified.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 @@ | ||
a173535ae-995b-4cc6-a74e-8cd4be57039c |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-numbers.verified.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 @@ | ||
1173535ae-995b-4cc6-a74e-8cd4be57039c |
1 change: 1 addition & 0 deletions
1
src/Verify.Tests/GuidScrubberTests.Run_start-square.verified.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 @@ | ||
[Guid_1 |
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,42 @@ | ||
[UsesVerify] | ||
public class GuidScrubberTests | ||
{ | ||
[Theory] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c", "simple")] | ||
[InlineData("{173535ae-995b-4cc6-a74e-8cd4be57039c}", "curly")] | ||
[InlineData("{173535ae-995b-4cc6-a74e-8cd4be57039c", "start-curly")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c}", "end-curly")] | ||
[InlineData("-173535ae-995b-4cc6-a74e-8cd4be57039c-", "dash")] | ||
[InlineData("-173535ae-995b-4cc6-a74e-8cd4be57039c", "start-dash")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c-", "end-dash")] | ||
[InlineData("/173535ae-995b-4cc6-a74e-8cd4be57039c/", "fslash")] | ||
[InlineData("/173535ae-995b-4cc6-a74e-8cd4be57039c", "start-fslash")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c/", "end-fslash")] | ||
[InlineData("\\173535ae-995b-4cc6-a74e-8cd4be57039c\\}", "bslash")] | ||
[InlineData("\\173535ae-995b-4cc6-a74e-8cd4be57039c", "start-bslash")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c\\", "end-bslash")] | ||
[InlineData("[173535ae-995b-4cc6-a74e-8cd4be57039c]", "square")] | ||
[InlineData("[173535ae-995b-4cc6-a74e-8cd4be57039c", "start-square")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c]", "end-square")] | ||
[InlineData("a173535ae-995b-4cc6-a74e-8cd4be57039ca", "letters")] | ||
[InlineData("a173535ae-995b-4cc6-a74e-8cd4be57039c", "start-letters")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039ca", "end-letters")] | ||
[InlineData("1173535ae-995b-4cc6-a74e-8cd4be57039c1", "numbers")] | ||
[InlineData("1173535ae-995b-4cc6-a74e-8cd4be57039c", "start-numbers")] | ||
[InlineData("173535ae-995b-4cc6-a74e-8cd4be57039c1", "end-numbers")] | ||
public async Task Run(string guid, string name) | ||
{ | ||
Counter.Start(); | ||
try | ||
{ | ||
var builder = new StringBuilder(guid); | ||
GuidScrubber.ReplaceGuids(builder); | ||
await Verify(builder) | ||
.UseTextForParameters(name); | ||
} | ||
finally | ||
{ | ||
Counter.Stop(); | ||
} | ||
} | ||
} |
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