Skip to content

Commit b54c023

Browse files
committed
More test fixes
1 parent e828d85 commit b54c023

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Frends.Community.SQL.Tests/SaveQueryToCSVTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public async Task SaveQueryToCSV_WithImageDBType()
169169

170170
var output = File.ReadAllText(_destination);
171171

172-
Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_image.png"))), output);
172+
Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_image.png"))), output.TrimEnd('\r', '\n'));
173173
}
174174

175175
[Test]
@@ -202,7 +202,7 @@ public async Task SaveQueryToCSV_WithBinaryDBType()
202202

203203
var output = File.ReadAllText(_destination);
204204

205-
Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_text.txt"))), output.TrimEnd(Environment.NewLine.ToCharArray()));
205+
Assert.AreEqual(BitConverter.ToString(File.ReadAllBytes(Path.Combine(Path.GetDirectoryName(_destination), "Test_text.txt"))), output.TrimEnd('\r', '\n'));
206206
}
207207

208208
private static void InsertTestData(string commandText, SqlParameter[] parameters = null)

0 commit comments

Comments
 (0)