Skip to content

Commit 6bffed0

Browse files
committed
Updated unit tests with correct event type name
1 parent bc29626 commit 6bffed0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Platforms/Exceptionless.Wpf/ExceptionlessClientExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void RegisterApplicationDispatcherUnhandledExceptionHandler(this E
4949

5050
if (System.Windows.Application.Current == null)
5151
return;
52-
52+
5353
if (_onApplicationDispatcherUnhandledException == null)
5454
_onApplicationDispatcherUnhandledException = (sender, args) => {
5555
var contextData = new ContextData();
@@ -79,7 +79,7 @@ public static void UnregisterApplicationDispatcherUnhandledExceptionHandler(this
7979

8080
if (System.Windows.Application.Current != null)
8181
System.Windows.Application.Current.DispatcherUnhandledException -= _onApplicationDispatcherUnhandledException;
82-
82+
8383
_onApplicationDispatcherUnhandledException = null;
8484
}
8585
}

tests/Exceptionless.Tests/Plugins/PluginTests.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ public void EventExclusionPlugin_LogLevels(string source, string level, string s
178178

179179
[Theory]
180180
[InlineData(null, null, null, null, false)]
181-
[InlineData("feature", null, null, null, false)]
182-
[InlineData("feature", "test", null, null, false)]
183-
[InlineData("feature", "test", "@@feature:Test", "true", false)]
184-
[InlineData("feature", "test", "@@feature:Test", "false", true)]
185-
[InlineData("feature", "test", "@@feature:*", "false", true)]
181+
[InlineData("usage", null, null, null, false)]
182+
[InlineData("usage", "test", null, null, false)]
183+
[InlineData("usage", "test", "@@usage:Test", "true", false)]
184+
[InlineData("usage", "test", "@@usage:Test", "false", true)]
185+
[InlineData("usage", "EX-FEAT: 1234567890", "@@usage:EX-FEAT: 1234567890", "false", true)]
186+
[InlineData("usage", "test", "@@usage:*", "false", true)]
186187
[InlineData("404", "/unknown", "@@404:*", "false", true)]
187188
[InlineData("404", "/unknown", "@@404:/unknown", "false", true)]
188189
[InlineData("404", "/unknown", "@@404:/unknown", "true", false)]

0 commit comments

Comments
 (0)