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:
Bjarke Berg
2020-11-03 09:02:15 +01:00
parent 2da6c8517a
commit 8e44d89856
13 changed files with 106 additions and 51 deletions

View File

@@ -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);
}
}
}