about summary refs log tree commit diff
path: root/IrcTokens/Tests/ParserTests.cs
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2020-04-22 10:30:26 -0400
committerBen Harris <ben@tilde.team>2020-04-22 10:30:26 -0400
commitbe91164499b263fc4c716c6d44c69f440f8ab634 (patch)
tree53e64398839afd35cf2bffab4f9559964098c7db /IrcTokens/Tests/ParserTests.cs
parent6a3bfd314d87bed96611d24440b0961a06bf7e91 (diff)
fix some stateful tests
also fixes some warnings about culture-specific string comparisons
Diffstat (limited to 'IrcTokens/Tests/ParserTests.cs')
-rw-r--r--IrcTokens/Tests/ParserTests.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/IrcTokens/Tests/ParserTests.cs b/IrcTokens/Tests/ParserTests.cs
index 502b6d6..ad734cf 100644
--- a/IrcTokens/Tests/ParserTests.cs
+++ b/IrcTokens/Tests/ParserTests.cs
@@ -1,4 +1,5 @@
 using System.Collections.Generic;
+using System.Globalization;
 using System.IO;
 using IrcTokens.Tests.Data;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -27,7 +28,8 @@ namespace IrcTokens.Tests
                 var tokens = new Line(test.Input);
                 var atoms = test.Atoms;
 
-                Assert.AreEqual(atoms.Verb.ToUpper(), tokens.Command, $"command failed on: '{test.Input}'");
+                Assert.AreEqual(atoms.Verb.ToUpper(CultureInfo.InvariantCulture), tokens.Command,
+                    $"command failed on: '{test.Input}'");
                 Assert.AreEqual(atoms.Source, tokens.Source, $"source failed on: '{test.Input}'");
                 CollectionAssert.AreEqual(atoms.Tags, tokens.Tags, $"tags failed on: '{test.Input}'");
                 CollectionAssert.AreEqual(atoms.Params ?? new List<string>(), tokens.Params, $"params failed on: '{test.Input}'");