diff --git a/test/ICSharpCode.SharpZipLib.Tests/Tar/TarTests.cs b/test/ICSharpCode.SharpZipLib.Tests/Tar/TarTests.cs index e49035afa..6ee78fe2d 100644 --- a/test/ICSharpCode.SharpZipLib.Tests/Tar/TarTests.cs +++ b/test/ICSharpCode.SharpZipLib.Tests/Tar/TarTests.cs @@ -206,7 +206,12 @@ private void TryLongName(string name) { TarEntry nextEntry = tarIn.GetNextEntry(); - Assert.AreEqual(nextEntry.Name, name, "Name match failure"); + if(nextEntry.Name != name) + { + Console.WriteLine($"Expected:\n{name}\nActual:{nextEntry.Name}"); + } + + Assert.AreEqual(name, nextEntry.Name, $"Name match failure (length: {name.Length})"); } }