From de40d2e50ccbaa88da0c90652cc7877f657c4a21 Mon Sep 17 00:00:00 2001 From: Riku Virtanen Date: Wed, 7 Feb 2024 15:43:26 +0200 Subject: [PATCH] CodeQL and Lint fixes --- .../Frends.MicrosoftSQL.ExecuteQueryToFile.Tests/UnitTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frends.MicrosoftSQL.ExecuteQueryToFile/Frends.MicrosoftSQL.ExecuteQueryToFile.Tests/UnitTests.cs b/Frends.MicrosoftSQL.ExecuteQueryToFile/Frends.MicrosoftSQL.ExecuteQueryToFile.Tests/UnitTests.cs index 8857c9e..1d8d0b3 100644 --- a/Frends.MicrosoftSQL.ExecuteQueryToFile/Frends.MicrosoftSQL.ExecuteQueryToFile.Tests/UnitTests.cs +++ b/Frends.MicrosoftSQL.ExecuteQueryToFile/Frends.MicrosoftSQL.ExecuteQueryToFile.Tests/UnitTests.cs @@ -206,6 +206,6 @@ public async Task ExecuteQueryToFile_WithBinaryDBType() var output = File.ReadAllText(_destination); - Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_text.txt"))), output.TrimEnd(Environment.NewLine.ToCharArray())); + Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_text.txt"))), output.TrimEnd(new char[] { '\r', '\n' })); } } \ No newline at end of file