diff options
Diffstat (limited to 'IrcTokens/Tests/StatefulDecoder.cs')
-rw-r--r-- | IrcTokens/Tests/StatefulDecoder.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/IrcTokens/Tests/StatefulDecoder.cs b/IrcTokens/Tests/StatefulDecoder.cs index 209a6cf..da4009e 100644 --- a/IrcTokens/Tests/StatefulDecoder.cs +++ b/IrcTokens/Tests/StatefulDecoder.cs @@ -1,6 +1,6 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace IrcTokens.Tests { @@ -25,7 +25,7 @@ namespace IrcTokens.Tests Assert.AreEqual(1, lines.Count); var line = new Line("PRIVMSG #channel hello"); - CollectionAssert.AreEqual(new List<Line> { line }, lines); + CollectionAssert.AreEqual(new List<Line> {line}, lines); } [TestMethod] @@ -44,9 +44,9 @@ namespace IrcTokens.Tests public void TestEncoding() { var iso8859 = Encoding.GetEncoding("iso-8859-1"); - _decoder = new IrcTokens.StatefulDecoder { Encoding = iso8859 }; + _decoder = new IrcTokens.StatefulDecoder {Encoding = iso8859}; var lines = _decoder.Push(iso8859.GetBytes("PRIVMSG #channel :hello Ç\r\n")); - var line = new Line("PRIVMSG #channel :hello Ç"); + var line = new Line("PRIVMSG #channel :hello Ç"); Assert.IsTrue(line.Equals(lines[0])); } @@ -54,7 +54,7 @@ namespace IrcTokens.Tests public void TestEncodingFallback() { var latin1 = Encoding.GetEncoding("iso-8859-1"); - _decoder = new IrcTokens.StatefulDecoder { Encoding = null, Fallback = latin1 }; + _decoder = new IrcTokens.StatefulDecoder {Encoding = null, Fallback = latin1}; var lines = _decoder.Push(latin1.GetBytes("PRIVMSG #channel hélló\r\n")); Assert.AreEqual(1, lines.Count); Assert.IsTrue(new Line("PRIVMSG #channel hélló").Equals(lines[0])); |