diff --git a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs index a74d4d27f24fa..42baa5aca0953 100644 --- a/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs +++ b/src/libraries/System.Diagnostics.Debug/tests/DebugTestsNoListeners.cs @@ -121,8 +121,8 @@ public void Write() [Fact] public void Print() { - VerifyLogged(() => Debug.Print("logged"), "logged"); - VerifyLogged(() => Debug.Print("logged {0}", 5), "logged 5"); + VerifyLogged(() => Debug.Print("logged"), "logged" + Environment.NewLine); + VerifyLogged(() => Debug.Print("logged {0}", 5), "logged 5" + Environment.NewLine); GoToNextLine(); }