Skip to content

Commit

Permalink
Fix CA issues
Browse files Browse the repository at this point in the history
References #8
  • Loading branch information
andreashuber-lawo committed Jan 10, 2016
1 parent 4f2a17b commit f116f00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Lawo.EmberPlusSharpTest/Model/ConsumerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ await WaitForChangeAsync(
}

/// <summary>Tests various streaming scenarios.</summary>
[SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Justification = "We need lowercase.")]
[TestMethod]
public void StreamTest()
{
Expand All @@ -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)),
Expand Down Expand Up @@ -1725,7 +1726,7 @@ private static S101Logger CreateLogger(bool log, string payloadXmlName, string e
new XmlWriterSettings { Indent = true, CloseOutput = true });
}

private int GetFormat<T>(T value, bool isLittleEndian)
private static int GetFormat<T>(T value, bool isLittleEndian)
{
var bigEndianFormat = GetFormat(value);

Expand All @@ -1739,7 +1740,7 @@ private int GetFormat<T>(T value, bool isLittleEndian)
}
}

private StreamFormat GetFormat<T>(T value)
private static StreamFormat GetFormat<T>(T value)
{
var type = value.GetType();

Expand Down

0 comments on commit f116f00

Please sign in to comment.