Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDotNet committed Aug 28, 2017
1 parent c166cd0 commit 50cd88f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace ThinkSharp.Licensing
[TestClass]
public class SerialNumberTest
{
private static readonly Regex ValidNumbersRegex = new Regex("([A-Z]|0-9)");
private static readonly Regex ValidNumbersRegex = new Regex("^([A-Z]|[0-9])*$");


[TestMethod]
Expand Down Expand Up @@ -71,6 +71,12 @@ public void TestBuild()
Assert.IsTrue(ValidNumbersRegex.IsMatch(splitted[i]), $"Splitted part '{splitted[i]}' is not valid.");
}

[TestMethod]
public void TestBuild_Fragment_6239()
{
Assert.IsTrue(ValidNumbersRegex.IsMatch("6234"));
}

[TestMethod]
public void Test_VerifyCheckSum()
{
Expand Down

0 comments on commit 50cd88f

Please sign in to comment.