From f116f00cb831d59689fde5f15941724a6d96776f Mon Sep 17 00:00:00 2001 From: andreashuber-lawo Date: Sun, 10 Jan 2016 11:05:31 +0100 Subject: [PATCH] Fix CA issues References #8 --- Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs b/Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs index 82a8d691..93531ae2 100644 --- a/Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs +++ b/Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs @@ -850,6 +850,7 @@ await WaitForChangeAsync( } /// Tests various streaming scenarios. + [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Justification = "We need lowercase.")] [TestMethod] public void StreamTest() { @@ -874,7 +875,7 @@ public void StreamTest() intBytes.Length, GetFormat(realValue, true), 0, - boolValue.ToString().ToLower(), + boolValue.ToString().ToLowerInvariant(), new SoapHexBinary(intBytes.Concat(enumBytes).ToArray()), new SoapHexBinary(octetStringValue), new SoapHexBinary(BitConverter.GetBytes(realValue)), @@ -1725,7 +1726,7 @@ private static S101Logger CreateLogger(bool log, string payloadXmlName, string e new XmlWriterSettings { Indent = true, CloseOutput = true }); } - private int GetFormat(T value, bool isLittleEndian) + private static int GetFormat(T value, bool isLittleEndian) { var bigEndianFormat = GetFormat(value); @@ -1739,7 +1740,7 @@ private int GetFormat(T value, bool isLittleEndian) } } - private StreamFormat GetFormat(T value) + private static StreamFormat GetFormat(T value) { var type = value.GetType();