Introducing interface for our needs of a CronTabParser. And inject it where needed
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -301,14 +301,5 @@ namespace Umbraco.Tests.UnitTests.Umbraco.Core.ShortStringHelper
|
||||
Assert.AreEqual(expected, output);
|
||||
}
|
||||
|
||||
[TestCase("", false)]
|
||||
[TestCase("* * * * 1", true)]
|
||||
[TestCase("* * * * * 1", true)]
|
||||
[TestCase("* * * 1", false)]
|
||||
public void IsValidCronTab(string input, bool expected)
|
||||
{
|
||||
var result = input.IsValidCronTab();
|
||||
Assert.AreEqual(expected, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user