Skip to content

Commit 6ca09e3

Browse files
Fix unit tests
1 parent 99a05d7 commit 6ca09e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Testing.Databases.SqlServer.SqlCmd.Tests/SqlCmdProcessTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void WaitForExit_Disposed()
1919

2020
process.Invoking(p => p.WaitForExit())
2121
.Should().ThrowExactly<ObjectDisposedException>()
22-
.WithMessage("Cannot access a disposed object.\r\nObject name: 'PosInformatique.Testing.Databases.SqlServer.SqlCmdProcess'.")
22+
.WithMessage($"Cannot access a disposed object.{Environment.NewLine}Object name: 'PosInformatique.Testing.Databases.SqlServer.SqlCmdProcess'.")
2323
.Which.ObjectName.Should().Be("PosInformatique.Testing.Databases.SqlServer.SqlCmdProcess");
2424
}
2525
}

tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void ToStringTest()
2222

2323
var difference = new SqlObjectDifferences<SqlUserType>(source, target, default, properties);
2424

25-
difference.ToString().Should().Be("The source\r\n * The prop1:\r\n Source: 10\r\n Target: 20\r\n * The prop2:\r\n Source: 30\r\n Target: 40\r\n");
25+
difference.ToString().Should().Be($"The source{Environment.NewLine} * The prop1:{Environment.NewLine} Source: 10{Environment.NewLine} Target: 20{Environment.NewLine} * The prop2:{Environment.NewLine} Source: 30{Environment.NewLine} Target: 40{Environment.NewLine}");
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)