Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Common/tests/TestUtilities/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

global using System.Diagnostics;
global using System.Diagnostics.CodeAnalysis;
global using Xunit;
1 change: 0 additions & 1 deletion src/Common/tests/TestUtilities/ModuleInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

#nullable enable

using System.Collections.Concurrent;

namespace System;
Expand Down
7 changes: 3 additions & 4 deletions src/Common/tests/TestUtilities/ThrowingTraceListener.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics;

namespace System;

public sealed class ThrowingTraceListener : TraceListener
Expand All @@ -12,8 +10,9 @@ public sealed class ThrowingTraceListener : TraceListener
public override void Fail(string? message, string? detailMessage)
{
throw new InvalidOperationException(
(string.IsNullOrEmpty(message) ? "Assertion failed" : message) +
(string.IsNullOrEmpty(detailMessage) ? "" : Environment.NewLine + detailMessage));
$"{(string.IsNullOrEmpty(message) ? "Assertion failed" : message)}{(string.IsNullOrEmpty(detailMessage)
? ""
: $"{Environment.NewLine}{detailMessage}")}");
}

public override void Write(object? o)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

global using System.Diagnostics;
global using System.Diagnostics.CodeAnalysis;
global using Windows.Win32;
global using Windows.Win32.Foundation;
Expand Down