mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
added ModerationRepository Tests
This commit is contained in:
@ -22,6 +22,34 @@ namespace BirdsiteLive.Domain.Tests.Tools
|
||||
#endregion
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Parse_Null_Test()
|
||||
{
|
||||
#region Stubs
|
||||
string entry = null;
|
||||
#endregion
|
||||
|
||||
var result = ModerationParser.Parse(entry);
|
||||
|
||||
#region Validations
|
||||
Assert.AreEqual(0, result.Length);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Parse_WhiteSpace_Test()
|
||||
{
|
||||
#region Stubs
|
||||
var entry = " ";
|
||||
#endregion
|
||||
|
||||
var result = ModerationParser.Parse(entry);
|
||||
|
||||
#region Validations
|
||||
Assert.AreEqual(0, result.Length);
|
||||
#endregion
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Parse_PipeSeparator_Test()
|
||||
{
|
||||
|
Reference in New Issue
Block a user