File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,22 @@ public void CanCancel() {
78
78
Assert . Equal ( 0 , context . Event . Tags . Count ) ;
79
79
}
80
80
81
+ [ Fact ]
82
+ public void ShouldUseReferenceIds ( ) {
83
+ var client = new ExceptionlessClient ( ) ;
84
+ foreach ( var plugin in client . Configuration . Plugins )
85
+ client . Configuration . RemovePlugin ( plugin . Key ) ;
86
+
87
+ var context = new EventPluginContext ( client , new Event { Type = Event . KnownTypes . Error } ) ;
88
+ EventPluginManager . Run ( context ) ;
89
+ Assert . Null ( context . Event . ReferenceId ) ;
90
+
91
+ client . Configuration . UseReferenceIds ( ) ;
92
+ context = new EventPluginContext ( client , new Event { Type = Event . KnownTypes . Error } ) ;
93
+ EventPluginManager . Run ( context ) ;
94
+ Assert . NotNull ( context . Event . ReferenceId ) ;
95
+ }
96
+
81
97
[ Fact ]
82
98
public void VerifyPriority ( ) {
83
99
var config = new ExceptionlessConfiguration ( DependencyResolver . CreateDefault ( ) ) ;
You can’t perform that action at this time.
0 commit comments