diff options
author | crupest <crupest@outlook.com> | 2020-02-29 18:12:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 18:12:13 +0800 |
commit | 11ab08bc1b61636e0681914c62794720e4ac6ac4 (patch) | |
tree | 9cbe0f8f6e6be22f66893b666ca537c0aebf268b /Timeline.Tests/UsernameValidatorUnitTest.cs | |
parent | 1d5e54dead00c08b500b9d40ec4f86d2554a0aab (diff) | |
parent | b43b480d3c50b3f12cf01750c0951ece1fe70119 (diff) | |
download | timeline-11ab08bc1b61636e0681914c62794720e4ac6ac4.tar.gz timeline-11ab08bc1b61636e0681914c62794720e4ac6ac4.tar.bz2 timeline-11ab08bc1b61636e0681914c62794720e4ac6ac4.zip |
Merge pull request #66 from crupest/timeline-name
Widen timeline name constraint.
Diffstat (limited to 'Timeline.Tests/UsernameValidatorUnitTest.cs')
-rw-r--r-- | Timeline.Tests/UsernameValidatorUnitTest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Timeline.Tests/UsernameValidatorUnitTest.cs b/Timeline.Tests/UsernameValidatorUnitTest.cs index 0f844452..8824362b 100644 --- a/Timeline.Tests/UsernameValidatorUnitTest.cs +++ b/Timeline.Tests/UsernameValidatorUnitTest.cs @@ -39,6 +39,7 @@ namespace Timeline.Tests [InlineData("!")]
[InlineData("!abc")]
[InlineData("ab c")]
+ [InlineData("ab c!")] // This is a chinese ! .
public void BadCharactor(string value)
{
FailAndMessage(value).Should().ContainEquivalentOf("invalid")
@@ -61,6 +62,7 @@ namespace Timeline.Tests [InlineData("a-bc")]
[InlineData("a-b-c")]
[InlineData("a-b_c")]
+ [InlineData("a-你好_c")]
public void Success(string value)
{
var (result, _) = _validator.Validate(value);
|