Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6e81bed

Browse files
Correcting unit tests
1 parent 2886204 commit 6e81bed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/UnitTests/Git/BranchNameValidationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public void TestFeatureString(bool isValid, string branch)
4141
BranchNameValidator.IsBranchNameValid(branch).Should().Be(isValid);
4242
}
4343

44-
[TestCase(true, 45, 45, 45, TestName = "Can test with ascii values")]
45-
[TestCase(false, 45, 45, 39, TestName = "No individual ASCII value should be < octal(40)")]
46-
[TestCase(false, 45, 45, 177, TestName = "No individual ASCII value should = octal(177)")]
44+
[TestCase(true, 65, 65, 65, TestName = "Can test with ascii values")]
45+
[TestCase(false, 65, 65, 31, TestName = "No individual ASCII value should be < octal(40) or dec(32)")]
46+
[TestCase(false, 65, 65, 127, TestName = "No individual ASCII value should = octal(177) or dec(127)")]
4747
public void TestFeatureStringFromAsciiArray(bool isValid, params int[] asciiValues)
4848
{
4949
var branch = new string(asciiValues.Select(Convert.ToChar).ToArray());

0 commit comments

Comments
 (0)