Skip to content

Commit 7e8a29e

Browse files
committed
Fix public API generator comparison on Windows
For some reason AppVeyor checks out on Windows with \n even though our gitattributes is set to auto, they've got some settings changed.
1 parent 2b0e985 commit 7e8a29e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Castle.Core.Tests/PublicApiTestCase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ public void PublicApi()
8080
if (compare)
8181
{
8282
Assert.IsTrue(File.Exists(assemblyRefPath), $"ref/{assemblyName}-{framework}.cs does not exist");
83-
Assert.AreEqual(publicApi, File.ReadAllText(assemblyRefPath), $"ref/{assemblyName}-{framework}.cs does not match {assemblyName}.dll");
83+
84+
string expectedPublicApi = string.Join(Environment.NewLine, File.ReadAllLines(assemblyRefPath));
85+
Assert.AreEqual(expectedPublicApi, publicApi, $"ref/{assemblyName}-{framework}.cs does not match {assemblyName}.dll");
8486
}
8587
else
8688
{

0 commit comments

Comments
 (0)