Skip to content

Commit acc0775

Browse files
committed
Test improved
1 parent fa9b76f commit acc0775

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Orm/Xtensive.Orm.Tests/TestInfoTest.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public void IsGithubActionsTest()
2626
if (githubActions is null) {
2727
Assert.That(TestInfo.IsGithubActions, Is.False);
2828

29-
var githbuActionsNoIgnore = Environment.GetEnvironmentVariable("GA_NO_IGNORE");
30-
Console.WriteLine($"GA_NO_IGNORE : {githbuActionsNoIgnore} ; NoIgnoreOnGithubActions : {TestInfo.NoIgnoreOnGithubActions}");
31-
if (githbuActionsNoIgnore is null)
32-
Assert.That(TestInfo.NoIgnoreOnGithubActions);
29+
var githubActionsNoIgnore = Environment.GetEnvironmentVariable("GA_NO_IGNORE");
30+
Console.WriteLine($"GA_NO_IGNORE : {githubActionsNoIgnore} ; NoIgnoreOnGithubActions : {TestInfo.NoIgnoreOnGithubActions}");
31+
if (githubActionsNoIgnore is null)
32+
Assert.That(TestInfo.NoIgnoreOnGithubActions, Is.False);
3333
else
34-
Assert.That(TestInfo.NoIgnoreOnGithubActions);
34+
Assert.That(TestInfo.NoIgnoreOnGithubActions, Is.EqualTo(githubActionsNoIgnore.Equals("true", StringComparison.OrdinalIgnoreCase)));
3535
}
3636
else {
3737
Assert.That(TestInfo.IsGithubActions, Is.True);
@@ -45,13 +45,13 @@ public void IsGithubActionsTest()
4545
Assert.That(TestInfo.GithubActionTrigger.HasValue, Is.True);
4646
}
4747

48-
var githbuActionsNoIgnore = Environment.GetEnvironmentVariable("GA_NO_IGNORE");
49-
Console.WriteLine($"GA_NO_IGNORE : {githbuActionsNoIgnore} ; NoIgnoreOnGithubActions : {TestInfo.NoIgnoreOnGithubActions}");
50-
if (githbuActionsNoIgnore is null) {
48+
var githubActionsNoIgnore = Environment.GetEnvironmentVariable("GA_NO_IGNORE");
49+
Console.WriteLine($"GA_NO_IGNORE : {githubActionsNoIgnore} ; NoIgnoreOnGithubActions : {TestInfo.NoIgnoreOnGithubActions}");
50+
if (githubActionsNoIgnore is null) {
5151
Assert.That(TestInfo.NoIgnoreOnGithubActions, Is.False);
5252
}
5353
else {
54-
Assert.That(TestInfo.NoIgnoreOnGithubActions, Is.EqualTo(githbuActionsNoIgnore.Equals("true", StringComparison.OrdinalIgnoreCase)));
54+
Assert.That(TestInfo.NoIgnoreOnGithubActions, Is.EqualTo(githubActionsNoIgnore.Equals("true", StringComparison.OrdinalIgnoreCase)));
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)