aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/UsernameValidatorUnitTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-30 23:49:02 +0800
committercrupest <crupest@outlook.com>2020-01-30 23:49:02 +0800
commit49bd47fb0eb81a88cce135f7ff7c25637790e63b (patch)
tree70ddc26cf29bdf4b19e9a746cac6017845e009fc /Timeline.Tests/UsernameValidatorUnitTest.cs
parenta1a2eede6942aef7d8c20f9e7fb25f53b2b63d86 (diff)
downloadtimeline-49bd47fb0eb81a88cce135f7ff7c25637790e63b.tar.gz
timeline-49bd47fb0eb81a88cce135f7ff7c25637790e63b.tar.bz2
timeline-49bd47fb0eb81a88cce135f7ff7c25637790e63b.zip
Finish reafctor, TODO: Database migration.
Diffstat (limited to 'Timeline.Tests/UsernameValidatorUnitTest.cs')
-rw-r--r--Timeline.Tests/UsernameValidatorUnitTest.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/Timeline.Tests/UsernameValidatorUnitTest.cs b/Timeline.Tests/UsernameValidatorUnitTest.cs
index 1a09d477..0f844452 100644
--- a/Timeline.Tests/UsernameValidatorUnitTest.cs
+++ b/Timeline.Tests/UsernameValidatorUnitTest.cs
@@ -22,12 +22,6 @@ namespace Timeline.Tests
}
[Fact]
- public void Null()
- {
- FailAndMessage(null).Should().ContainEquivalentOf("null");
- }
-
- [Fact]
public void NotString()
{
var (result, message) = _validator.Validate(123);
@@ -58,6 +52,7 @@ namespace Timeline.Tests
}
[Theory]
+ [InlineData(null)]
[InlineData("abc")]
[InlineData("-abc")]
[InlineData("_abc")]
@@ -68,7 +63,6 @@ namespace Timeline.Tests
[InlineData("a-b_c")]
public void Success(string value)
{
-
var (result, _) = _validator.Validate(value);
result.Should().BeTrue();
}