-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
61 additions
and
48 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ private static IEnumerable<object[]> All_TestData() | |
|
||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
|
@@ -79,7 +79,7 @@ private static IEnumerable<object[]> Full_TestData() | |
|
||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
|
@@ -106,7 +106,7 @@ private static IEnumerable<object[]> ShowLastFour_TestData() | |
|
||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
|
@@ -134,13 +134,14 @@ private static IEnumerable<object[]> ShowFirstSixLastFour_TestData() | |
|
||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
} | ||
|
||
|
||
[TestMethod] | ||
[DynamicData(nameof(All_TestData), DynamicDataSourceType.Method)] | ||
public void RedactCreditCard_All_ShouldReturnRedactedCreditCard_String(string input, string expected) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ private static IEnumerable<object[]> All_TestData() | |
yield return new object[] { "[email protected]", "********************" }; | ||
yield return new object[] { "just”not”[email protected]", "**************************" }; | ||
} | ||
|
||
private static IEnumerable<object[]> FixedLength_TestData() | ||
{ | ||
yield return new object[] { "[email protected]", "********" }; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,13 @@ private static IEnumerable<object[]> All_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "***********************" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
} | ||
|
||
|
||
private static IEnumerable<object[]> FixedLength_TestData() | ||
{ | ||
yield return new object[] { "", "" }; | ||
|
@@ -33,12 +34,13 @@ private static IEnumerable<object[]> FixedLength_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
} | ||
|
||
|
||
private static IEnumerable<object[]> Full_TestData() | ||
{ | ||
yield return new object[] { "", "" }; | ||
|
@@ -52,12 +54,13 @@ private static IEnumerable<object[]> Full_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "**:**:**:**:**:**:**:**" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
} | ||
|
||
|
||
private static IEnumerable<object[]> ShowLastQuartet_TestData() | ||
{ | ||
yield return new object[] { "", "" }; | ||
|
@@ -71,12 +74,13 @@ private static IEnumerable<object[]> ShowLastQuartet_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "**:**:**:**:**:**:**:5E" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
} | ||
|
||
|
||
[TestMethod] | ||
[DynamicData(nameof(All_TestData), DynamicDataSourceType.Method)] | ||
public void RedactIpv6_All_ShouldReturnRedactedRedactIPv6_String(string input, string expected) | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ private static IEnumerable<object[]> All_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "***************************************" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
|
@@ -31,7 +31,7 @@ private static IEnumerable<object[]> FixedLength_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
|
@@ -48,7 +48,7 @@ private static IEnumerable<object[]> Full_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "****:****:****:****:****:****:****:****" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
|
@@ -65,7 +65,7 @@ private static IEnumerable<object[]> ShowLastByte_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "****:****:****:****:****:****:****:7334" }; | ||
yield return new object[] { "+1 (555) 123-4567", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
|
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 |
---|---|---|
|
@@ -95,7 +95,7 @@ private static IEnumerable<object[]> FixedLength_TestData() | |
yield return new object[] { "4111 1111 1111 1111", "********" }; | ||
yield return new object[] { "2023/06/15", "********" }; | ||
yield return new object[] { "[email protected]", "********" }; | ||
yield return new object[] { "100.100.100.100", "********"}; | ||
yield return new object[] { "100.100.100.100", "********" }; | ||
yield return new object[] { "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "********" }; | ||
yield return new object[] { "00:1A:2B:FF:FE:3C:4D:5E", "********" }; | ||
yield return new object[] { "abc123 !@#", "********" }; | ||
|
Oops, something went wrong.