diff --git a/tests/bunit.testassets/SampleComponents/CustomPasteSample.razor.cs b/tests/bunit.testassets/SampleComponents/CustomPasteSample.razor.cs index 7a76025bd..be978a1cb 100644 --- a/tests/bunit.testassets/SampleComponents/CustomPasteSample.razor.cs +++ b/tests/bunit.testassets/SampleComponents/CustomPasteSample.razor.cs @@ -11,7 +11,9 @@ void HandleCustomPaste(CustomPasteEventArgs eventArgs) } [EventHandler("oncustompaste", typeof(CustomPasteEventArgs), enableStopPropagation: true, enablePreventDefault: true)] +#pragma warning disable CA1724 // The type name EventHandlers conflicts in whole or in part with the namespace name 'Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.EventHandlers'. public static class EventHandlers +#pragma warning restore { // This static class doesn't need to contain any members. It's just a place where we can put // [EventHandler] attributes to configure event types on the Razor compiler. This affects the