You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test]publicstaticvoidStaticEventHandlerOfPropertyChangedEventArgsInvoker(){varbefore=@"namespace N{ using System; using System.ComponentModel; public static class C { private static string p; public static event EventHandler<PropertyChangedEventArgs> StaticPropertyChanged; public static string P { get => p; set { if (value == p) { return; } p = value; OnStaticPropertyChanged(↓""P""); } } private static void OnStaticPropertyChanged(string propertyName) { StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName)); } }}";varafter=@"namespace N{ using System; using System.ComponentModel; public static class C { private static string p; public static event EventHandler<PropertyChangedEventArgs> StaticPropertyChanged; public static string P { get => p; set { if (value == p) { return; } p = value; OnStaticPropertyChanged(nameof(P)); } } private static void OnStaticPropertyChanged(string propertyName) { StaticPropertyChanged?.Invoke(null, new PropertyChangedEventArgs(propertyName)); } }}";
RoslynAssert.CodeFix(Analyzer, Fix, ExpectedDiagnostic, before, after);}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: