forked from microsoft/RulesEngine
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathall_tests.txt
More file actions
398 lines (394 loc) · 41.1 KB
/
Copy pathall_tests.txt
File metadata and controls
398 lines (394 loc) · 41.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
Build started 5/28/2026 1:43:14 PM.
Test run for C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\bin\Debug\net8.0\RulesEngine.UnitTest.dll (.NETCoreApp,Version=v8.0)
VSTest version 17.11.1 (x64)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.5+1b188a7b0a (64-bit .NET 8.0.27)
[xUnit.net 00:00:01.14] Discovering: RulesEngine.UnitTest
[xUnit.net 00:00:01.32] Discovered: RulesEngine.UnitTest
[xUnit.net 00:00:01.44] Starting: RulesEngine.UnitTest
Passed RulesEngine.UnitTest.ListofRuleResultTreeExtensionTest.OnFailWithoutSuccessTest [10 ms]
Passed RulesEngine.UnitTest.RuleCompilerTest.RuleCompiler_NullCheck [10 ms]
Passed RulesEngine.UnitTest.ExpressionUtilsTest.CheckContainsTest [10 ms]
Passed RulesEngine.UnitTest.MemCacheTests.MemCache_GetOrCreate_ShouldCacheResult [13 ms]
Passed RulesEngine.UnitTest.CustomTypeProviderTests.GetCustomTypes_StateUnderTest_ExpectedBehavior [13 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_Integer_ReturnsInt32 [14 ms]
Passed RulesEngine.UnitTest.RuleExpressionBuilderFactoryTest.RuleGetExpressionBuilderTest(expressionType: LambdaExpression, expectedExpressionBuilderType: typeof(RulesEngine.ExpressionBuilders.LambdaExpressionBuilder)) [11 ms]
Passed RulesEngine.UnitTest.RuleCompilerTest.RuleCompiler_CompileRule_ThrowsException [< 1 ms]
Passed RulesEngine.UnitTest.MemCacheTests.MemCache_Remove_ShouldRemoveEntry [< 1 ms]
Passed RulesEngine.UnitTest.ListofRuleResultTreeExtensionTest.OnSuccessWithSuccessTest [< 1 ms]
Passed RulesEngine.UnitTest.ListofRuleResultTreeExtensionTest.OnSuccessWithouSuccessTest [< 1 ms]
Passed RulesEngine.UnitTest.ListofRuleResultTreeExtensionTest.OnFailWithSuccessTest [< 1 ms]
Passed RulesEngine.UnitTest.ListofRuleResultTreeExtensionTest.OnSuccessWithSuccessWithEventTest [< 1 ms]
Passed RulesEngine.UnitTest.RuleExpressionParserValidationTests.Parse_ArrayWithNullElement_ShouldThrowArgumentException [2 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_Array_ReturnsList [9 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_True_ReturnsTrue [< 1 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_LargeInteger_ReturnsInt64 [< 1 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_Null_ReturnsNull [< 1 ms]
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_DecimalFormat_ReturnsDecimal [< 1 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestBooleanConversion_True [39 ms]
[xUnit.net 00:00:01.53] RulesEngine.UnitTest.MemCacheTests.MemCache_SizeZero_ShouldImmediatelyEvict [FAIL]
[xUnit.net 00:00:01.53] Assert.False() Failure
[xUnit.net 00:00:01.53] Expected: False
[xUnit.net 00:00:01.53] Actual: True
[xUnit.net 00:00:01.53] Stack Trace:
[xUnit.net 00:00:01.53] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\MemCacheTests.cs(80,0): at RulesEngine.UnitTest.MemCacheTests.MemCache_SizeZero_ShouldImmediatelyEvict()
[xUnit.net 00:00:01.53] at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:00:01.53] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:01.53] RulesEngine.UnitTest.MemCacheTests.MemCache_AddBeyondSizeLimit_ShouldEvictOldest [FAIL]
[xUnit.net 00:00:01.53] Assert.False() Failure
[xUnit.net 00:00:01.53] Expected: False
[xUnit.net 00:00:01.53] Actual: True
[xUnit.net 00:00:01.53] Stack Trace:
[xUnit.net 00:00:01.53] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\MemCacheTests.cs(47,0): at RulesEngine.UnitTest.MemCacheTests.MemCache_AddBeyondSizeLimit_ShouldEvictOldest()
[xUnit.net 00:00:01.53] at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:00:01.53] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Passed RulesEngine.UnitTest.Serialization.ObjectAsPrimitiveConverterTests.Read_Object_ReturnsExpandoObject [1 ms]
Failed RulesEngine.UnitTest.MemCacheTests.MemCache_SizeZero_ShouldImmediatelyEvict [< 1 ms]
Error Message:
Assert.False() Failure
Expected: False
Actual: True
Stack Trace:
at RulesEngine.UnitTest.MemCacheTests.MemCache_SizeZero_ShouldImmediatelyEvict() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\MemCacheTests.cs:line 80
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestUndefinedConversion [1 ms]
Failed RulesEngine.UnitTest.MemCacheTests.MemCache_AddBeyondSizeLimit_ShouldEvictOldest [< 1 ms]
Error Message:
Assert.False() Failure
Expected: False
Actual: True
Stack Trace:
at RulesEngine.UnitTest.MemCacheTests.MemCache_AddBeyondSizeLimit_ShouldEvictOldest() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\MemCacheTests.cs:line 47
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Passed RulesEngine.UnitTest.MemCacheTests.MemCache_Clear_ShouldRemoveAllEntries [< 1 ms]
Passed RulesEngine.UnitTest.MemCacheTests.MemCache_AddUpToSizeLimit_ShouldSucceed [< 1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetParentRuleResult_ReturnsParentRule [25 ms]
Passed RulesEngine.UnitTest.ActionContextTests.Constructor_ShouldInitializeCancellationToken [1 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestNumberConversion_Long [10 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_InvalidName_ThrowsArgumentException [< 1 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestNumberConversion_Int [1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_ValidNameWithStringCaseDiffernce_ReturnsContext [7 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestNumberConversion_Decimal [5 ms]
Passed RulesEngine.UnitTest.RuleExpressionParserValidationTests.Parse_ValidParameters_ShouldSucceed [34 ms]
Passed RulesEngine.UnitTest.RuleExpressionParserValidationTests.Parse_NullParametersArray_ShouldThrowArgumentNullException [< 1 ms]
[xUnit.net 00:00:01.55] RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateRuleParameterArrayOrder [FAIL]
[xUnit.net 00:00:01.55] Assert.True() Failure
[xUnit.net 00:00:01.55] Expected: True
[xUnit.net 00:00:01.55] Actual: False
[xUnit.net 00:00:01.55] Stack Trace:
[xUnit.net 00:00:01.55] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\ArrayMutationTests.cs(44,0): at RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateRuleParameterArrayOrder()
[xUnit.net 00:00:01.55] --- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.RuleExpressionParserValidationTests.Parse_MultipleValidParameters_ShouldSucceed [< 1 ms]
Passed RulesEngine.Tests.RuleParameterTests.TryGetPropertyValue_WithNonExistentPropertyName_ReturnsFalseAndNull [61 ms]
Passed RulesEngine.Tests.RuleParameterTests.Constructor_SetsOriginalValueCorrectly_WithExpandoObject [2 ms]
Passed RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.TestExpressionWithDifferentCompilerSettings(fastExpressionEnabled: False) [64 ms]
Passed RulesEngine.Tests.RuleParameterTests.TryGetPropertyValue_WithNullPropertyName_ReturnsFalseAndNull [< 1 ms]
Passed RulesEngine.Tests.RuleParameterTests.Constructor_SetsOriginalValueCorrectly_WithCustomObject [< 1 ms]
Passed RulesEngine.Tests.RuleParameterTests.Constructor_SetsOriginalValueCorrectly_WithPrimitiveType [< 1 ms]
Failed RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateRuleParameterArrayOrder [66 ms]
Error Message:
Assert.True() Failure
Expected: True
Actual: False
Stack Trace:
at RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateRuleParameterArrayOrder() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\ArrayMutationTests.cs:line 44
--- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestArrayConversion [8 ms]
Passed RulesEngine.Tests.RuleParameterTests.Constructor_SetsOriginalValueCorrectly_WithExpandoObject_WithItemKey [1 ms]
Passed RulesEngine.UnitTest.RuleValidationTest.NestedRulesWithMissingOperator_ReturnsExepectedResults [68 ms]
Passed RulesEngine.UnitTest.EmptyRulesTest.NestedRulesWithEmptyNestedActions_ReturnsExepectedResults [68 ms]
Passed RulesEngine.UnitTest.RuleValidationTest.NullExpressionithLambdaExpression_ReturnsExepectedResults [< 1 ms]
Passed RulesEngine.UnitTest.EmptyRulesTest.EmptyRules_ReturnsExepectedResults [1 ms]
Passed RulesEngine.Tests.RuleParameterTests.TryGetPropertyValue_WithValidPropertyName_ReturnsTrueAndCorrectValue [3 ms]
Passed RulesEngine.UnitTest.DisabledRuleErrorMessageTests.ExecuteActionWorkflowAsync_DisabledRule_ShouldReturnAccurateError [48 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_ObjectContext_ReturnsTypedContext [12 ms]
Passed RulesEngine.UnitTest.DisabledRuleErrorMessageTests.ExecuteActionWorkflowAsync_EnabledRule_ShouldSucceed [< 1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_InvalidNameListContext_ThrowsArgumentException [< 1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetCancellationToken_ShouldReturnCancellationToken [< 1 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestObjectConversion [6 ms]
Passed RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_SameParamNamesSameTypes_ShouldBeSame [75 ms]
Passed RulesEngine.UnitTest.LambdaExpressionBuilderTest.BuildExpressionForRuleTest [75 ms]
Passed RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotModifyParameterCount [7 ms]
Passed RulesEngine.UnitTest.ActionTests.ActionsWithExceptions.Exception_AsMessage [75 ms]
Passed RulesEngine.UnitTest.ActionExceptionTests.ActionResult_Exception_ShouldNotBeWrapped [76 ms]
Passed RulesEngine.UnitTest.JsonCaseInsensitiveTests.RulesEngine_ShouldAcceptMixedCaseJson [76 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_EvaluateRuleAction_ReturnsExpressionEvaluation [76 ms]
[xUnit.net 00:00:01.57] RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateInputArray [FAIL]
[xUnit.net 00:00:01.57] Assert.True() Failure
[xUnit.net 00:00:01.57] Expected: True
[xUnit.net 00:00:01.57] Actual: False
[xUnit.net 00:00:01.57] Stack Trace:
[xUnit.net 00:00:01.57] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\ArrayMutationTests.cs(79,0): at RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateInputArray()
[xUnit.net 00:00:01.57] --- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.ParameterNameChangeTest.RunTwiceTest_ReturnsExpectedResults [77 ms]
Passed RulesEngine.UnitTest.ActionTests.ActionsWithExceptions.Exception_Ignore [1 ms]
Passed RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.CachingLiteralsDictionary [12 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateObject_WithJsonElement_ShouldConvertToExpandoObject [77 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestStringConversion [2 ms]
Failed RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateInputArray [1 ms]
Error Message:
Assert.True() Failure
Expected: True
Actual: False
Stack Trace:
at RulesEngine.UnitTest.ArrayMutationTests.ExecuteAllRulesAsync_ShouldNotMutateInputArray() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\ArrayMutationTests.cs:line 79
--- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_DifferentGenericTypes_ShouldBeDifferent [2 ms]
Passed RulesEngine.UnitTest.JsonCaseInsensitiveTests.RulesEngine_ShouldAcceptCamelCaseJson [1 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestBooleanConversion_False [< 1 ms]
Passed RulesEngine.UnitTest.ActionExceptionTests.ActionResult_Exception_ShouldBeExactlyInvalidOperationException [2 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CalledWithNoActionsInWorkflow_ExecutesSuccessfully [1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "NoLocalAndGlobalParams") [78 ms]
Passed RulesEngine.UnitTest.TypedClassTests.TypedClassInputSameNameAsTypeTest [78 ms]
Passed RulesEngine.UnitTest.JsonElementExtensionsTests.TestNullConversion [< 1 ms]
Passed RulesEngine.UnitTest.ActionTests.ActionsWithExceptions.Exception_AsException [1 ms]
Passed RulesEngine.UnitTest.JsonCaseInsensitiveTests.RulesEngine_ShouldAcceptPascalCaseJson [< 1 ms]
Passed RulesEngine.UnitTest.RulesEnabledTests.RulesEngine_ShouldOnlyExecuteEnabledRules(workflowName: "RuleEnabledNestedFeatureTest", expectedRuleResults: [True, True, False]) [87 ms]
Passed RulesEngine.UnitTest.ActionExceptionTests.ActionResult_Exception_ShouldContainRawOriginalException [8 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CancellationToken_CalledWithNoActionsInWorkflow_ExecutesSuccessfully [7 ms]
Passed RulesEngine.UnitTest.CaseSensitiveTests.CaseSensitiveTest(caseSensitive: False, expected1: True, expected2: True) [87 ms]
[xUnit.net 00:00:01.58] Assert.True() Failure
[xUnit.net 00:00:01.58] Expected: True
[xUnit.net 00:00:01.58] Actual: False
[xUnit.net 00:00:01.58] RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_SameTypesDifferentParamNames_ShouldBeDifferent [FAIL]
[xUnit.net 00:00:01.58] Stack Trace:
[xUnit.net 00:00:01.58] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\CacheKeyCollisionTests.cs(74,0): at RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_SameTypesDifferentParamNames_ShouldBeDifferent()
[xUnit.net 00:00:01.58] --- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.ConcurrentWorkflowInjectionTests.ConcurrentWorkflowInjection_ShouldNotDuplicateRules [87 ms]
Passed RulesEngine.UnitTest.TypedClassTests.TypedClassTest [8 ms]
Failed RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_SameTypesDifferentParamNames_ShouldBeDifferent [8 ms]
Error Message:
Assert.True() Failure
Expected: True
Actual: False
Stack Trace:
at RulesEngine.UnitTest.CacheKeyCollisionTests.CacheKey_SameTypesDifferentParamNames_ShouldBeDifferent() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\CacheKeyCollisionTests.cs:line 74
--- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.NestedRulesCancellationOverloadTest.NestedRulesShouldFollowExecutionMode(mode: Performance) [87 ms]
Passed RulesEngine.UnitTest.EmptyArrayTest.EmptyArray_ReturnsExepectedResults [88 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateObject_WithEmptyArray_ShouldConvertToListDictionaryImplicitObject [9 ms]
Passed RulesEngine.UnitTest.CaseSensitiveTests.CaseSensitiveTest(caseSensitive: True, expected1: True, expected2: False) [< 1 ms]
Passed RulesEngine.UnitTest.RulesEnabledTests.RulesEngine_ShouldOnlyExecuteEnabledRules(workflowName: "RuleEnabledFeatureTest", expectedRuleResults: [True, True]) [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_EvaluateRuleActionCancellationToken_ReturnsExpressionEvaluation [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_InvalidWorkFlow_ThrowsException(ruleFileName: "rules1.json") [66 ms]
Passed RulesEngine.UnitTest.NestedRulesCancellationOverloadTest.NestedRulesShouldFollowExecutionMode(mode: All) [1 ms]
Passed RulesEngine.UnitTest.TypedClassTests.TypedClassBothAccessibleTestWhenCaseInsensitive [1 ms]
Passed RulesEngine.UnitTest.RuleChainingCollisionTests.RuleChaining_RuleName_ShouldNotMatchSubstring [89 ms]
Passed RulesEngine.UnitTest.OriginalIssueTest.OriginalIssue_FailureScenario_ShouldHandleCorrectly [66 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "GlobalParamReferencedInNextGlobalParams") [11 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_InvalidTypeConversion_ThrowsArgumentException [16 ms]
Passed RulesEngine.UnitTest.RuleChainingTest.RuleChaining_OriginalIssueScenario_ShouldWork [90 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CancellationToken_SelfReferencingAction_NoFilter_ExecutesSuccessfully [2 ms]
Passed RulesEngine.UnitTest.RuleChainingCollisionTests.RuleChaining_RuleNameInExpression_ShouldNotCorruptExpression [2 ms]
Passed RulesEngine.UnitTest.OriginalIssueTest.OriginalIssue_RuleChainingWithJsonConfig_ShouldWork [2 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "GlobalParamReferencedInLocalParams") [1 ms]
Passed RulesEngine.UnitTest.RulesEnabledTests.WorkflowUpdatedRuleEnabled_ShouldReflect(workflowName: "RuleEnabledNestedFeatureTest", expectedRuleResults: [True, True, False]) [4 ms]
Passed RulesEngine.UnitTest.NestedRulesCancellationOverloadTest.NestedRulesWithNestedActions_ReturnsCorrectResults [3 ms]
Passed RulesEngine.UnitTest.UtilsTests.GetTypedObject_dynamicObject [5 ms]
Passed RulesEngine.UnitTest.RuleChainingTest.RuleChaining_WithSuccessEventReference_ShouldWork [2 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CalledWithIncorrectWorkflowOrRuleName_ThrowsArgumentException [2 ms]
Passed RulesEngine.UnitTest.RulesEnabledTests.WorkflowUpdatedRuleEnabled_ShouldReflect(workflowName: "RuleEnabledFeatureTest", expectedRuleResults: [True, True]) [1 ms]
Passed RulesEngine.UnitTest.RuleChainingCollisionTests.RuleChaining_SuccessEvent_ShouldNotMatchSubstring [2 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateObject_dynamicObject [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_SingleObject_ReturnsListOfRuleResultTree(ruleFileName: "rules2.json") [5 ms]
Passed RulesEngine.UnitTest.RuleChainingTest.RuleChaining_WithoutScopedParams_ShouldFail [1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "GlobalParamAndLocalParamsInNestedRules") [3 ms]
Passed RulesEngine.UnitTest.UtilsTests.GetTypedObject_dynamicObject_multipleObjects [< 1 ms]
Passed RulesEngine.UnitTest.NestedRulesCancellationOverloadTest.NestedRulesWithNestedActions_WorkflowParsedWithSystemTextJson_ReturnsCorrectResults [2 ms]
Passed RulesEngine.UnitTest.UtilsTests.GetTypedObject_Anonymous_dynamicObject [< 1 ms]
Passed RulesEngine.UnitTest.ActionTests.CustomActionTest.CustomActionOnRuleMustHaveContextValues [96 ms]
Passed RulesEngine.UnitTest.RuleChainingCollisionTests.RuleChaining_SuccessEventTest2_ShouldNotMatchTest [2 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "GlobalParamsOnly") [1 ms]
Passed RulesEngine.UnitTest.RuleChainingTest.RuleChaining_WithRuleReference_ShouldPassResult [2 ms]
Passed RulesEngine.UnitTest.ActionTests.CustomActionTest.CustomAction_WithSystemTextJsobOnRuleMustHaveContextValues [1 ms]
Passed RulesEngine.UnitTest.ConcurrentWorkflowInjectionTests.ParallelWorkflowInjection_ShouldNotDuplicateRules [9 ms]
[xUnit.net 00:00:01.60] RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.TestExpressionWithJObject [FAIL]
[xUnit.net 00:00:01.60] System.IndexOutOfRangeException : Index was outside the bounds of the array.
[xUnit.net 00:00:01.60] Stack Trace:
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FirstIsBetterThanSecond(Expression[] args, MethodData first, MethodData second)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.<>c__DisplayClass10_1.<FindBestMethodBasedOnArguments>b__3(MethodData n)
[xUnit.net 00:00:01.60] at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.<>c__DisplayClass10_0.<FindBestMethodBasedOnArguments>b__2(MethodData m)
[xUnit.net 00:00:01.60] at System.Linq.Enumerable.WhereArrayIterator`1.ToArray()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FindBestMethodBasedOnArguments(IEnumerable`1 methods, Expression[]& args, MethodBase& method)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FindMethod(Type type, String methodName, Boolean staticAccess, Expression& instance, Expression[]& args, MethodBase& method)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseMemberAccess(Type type, Expression expression, String id)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseTypeAccess(Type type, Boolean getNext)
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIdentifier()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseArithmetic()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAdditive()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseShiftOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseComparisonOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLogicalAndOrOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIn()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAndOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLambdaOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseNullCoalescingOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator()
[xUnit.net 00:00:01.60] at System.Linq.Dynamic.Core.Parser.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor)
[xUnit.net 00:00:01.60] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs(46,0): at RulesEngine.ExpressionBuilders.RuleExpressionParser.Parse(String expression, ParameterExpression[] parameters, Type returnType)
[xUnit.net 00:00:01.60] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs(58,0): at RulesEngine.ExpressionBuilders.RuleExpressionParser.Compile[T](String expression, RuleParameter[] ruleParams)
[xUnit.net 00:00:01.60] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs(99,0): at RulesEngine.ExpressionBuilders.RuleExpressionParser.Evaluate[T](String expression, RuleParameter[] ruleParams)
[xUnit.net 00:00:01.60] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\RuleExpressionParserTests\RuleExpressionParserTests.cs(41,0): at RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.TestExpressionWithJObject()
[xUnit.net 00:00:01.60] at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:00:01.60] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CancellationToken_SelfReferencingAction_WithFilter_ExecutesSuccessfully [4 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "LocalParamsOnly") [1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_PrimitiveInputs_ReturnsResult [8 ms]
Passed RulesEngine.UnitTest.ActionContextTests.Constructor_ShouldInitializeDefaultCancellationToken_WhenNotProvided [< 1 ms]
Passed RulesEngine.UnitTest.ActionContextTests.GetContext_ValidName_ReturnsContext [< 1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "LocalParamReferencedInNextLocalParams") [1 ms]
Failed RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.TestExpressionWithJObject [13 ms]
Error Message:
System.IndexOutOfRangeException : Index was outside the bounds of the array.
Stack Trace:
at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FirstIsBetterThanSecond(Expression[] args, MethodData first, MethodData second)
at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.<>c__DisplayClass10_1.<FindBestMethodBasedOnArguments>b__3(MethodData n)
at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.<>c__DisplayClass10_0.<FindBestMethodBasedOnArguments>b__2(MethodData m)
at System.Linq.Enumerable.WhereArrayIterator`1.ToArray()
at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FindBestMethodBasedOnArguments(IEnumerable`1 methods, Expression[]& args, MethodBase& method)
at System.Linq.Dynamic.Core.Parser.SupportedMethods.MethodFinder.FindMethod(Type type, String methodName, Boolean staticAccess, Expression& instance, Expression[]& args, MethodBase& method)
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseMemberAccess(Type type, Expression expression, String id)
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseTypeAccess(Type type, Boolean getNext)
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIdentifier()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseArithmetic()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAdditive()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseShiftOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseComparisonOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLogicalAndOrOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIn()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAndOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLambdaOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseNullCoalescingOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator()
at System.Linq.Dynamic.Core.Parser.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor)
at RulesEngine.ExpressionBuilders.RuleExpressionParser.Parse(String expression, ParameterExpression[] parameters, Type returnType) in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs:line 46
at RulesEngine.ExpressionBuilders.RuleExpressionParser.Compile[T](String expression, RuleParameter[] ruleParams) in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs:line 58
at RulesEngine.ExpressionBuilders.RuleExpressionParser.Evaluate[T](String expression, RuleParameter[] ruleParams) in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\src\RulesEngine\ExpressionBuilders\RuleExpressionParser.cs:line 99
at RulesEngine.UnitTest.RuleExpressionParserTests.RuleExpressionParserTests.TestExpressionWithJObject() in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\RuleExpressionParserTests\RuleExpressionParserTests.cs:line 41
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Passed RulesEngine.UnitTest.UtilsTests.GetJsonElement_nonDynamicObject [3 ms]
Passed RulesEngine.UnitTest.NestedRulesTest.NestedRulesWithNestedActions_WorkflowParsedWithSystemTextJson_ReturnsCorrectResults [101 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RemoveWorkflow_RemovesWorkflow(ruleFileName: "rules1.json") [6 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.BasicWorkflows_ReturnsTrue(workflowName: "GlobalAndLocalParams") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_ComplexOutputExpressionAction_ReturnsExpressionEvaluation [3 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.DisabledScopedParam_ShouldReflect(workflowName: "GlobalAndLocalParams", outputs: [False]) [4 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_CancellationToken_OutputExpressionAction_ReturnsExpressionEvaluation [3 ms]
Passed RulesEngine.UnitTest.NestedRulesTest.NestedRulesWithNestedActions_ReturnsCorrectResults [5 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.DisabledScopedParam_ShouldReflect(workflowName: "LocalParamsOnly", outputs: [False, True]) [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_WithInjectedUtils_ReturnsListOfRuleResultTree(ruleFileName: "rules5.json", propValue: "hello", expectedResult: True) [5 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateObject_WithJsonElementArray_ShouldConvertToExpandoObject [7 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.DisabledScopedParam_ShouldReflect(workflowName: "GlobalParamsOnly", outputs: [False]) [< 1 ms]
Passed RulesEngine.UnitTest.UtilsTests.GetTypedObject_nonDynamicObject [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_SelfReferencingAction_WithFilter_ExecutesSuccessfully [1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.ErrorInScopedParam_ShouldAppearAsErrorMessage(workflowName: "LocalParamsOnly2") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_WithInjectedUtils_ReturnsListOfRuleResultTree(ruleFileName: "rules5.json", propValue: null, expectedResult: False) [1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_OutputExpressionAction_ReturnsExpressionEvaluation [1 ms]
Passed RulesEngine.UnitTest.NestedRulesTest.NestedRulesShouldFollowExecutionMode(mode: Performance) [2 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.ErrorInScopedParam_ShouldAppearAsErrorMessage(workflowName: "GlobalParamsOnly") [< 1 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateObject_WithJsonElementNested_ShouldConvertToExpandoObject [2 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.WhenExpressionIsSuccess_CancellationToken_ComplexOutputExpressionAction_ReturnsExpressionEvaluation [< 1 ms]
Passed RulesEngine.UnitTest.NestedRulesTest.NestedRulesShouldFollowExecutionMode(mode: All) [1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_SelfReferencingAction_NoFilter_ExecutesSuccessfully [1 ms]
Passed RulesEngine.UnitTest.RulesEngineWithActionsTests.ExecuteActionWorkflowAsync_CancellationToken_CalledWithIncorrectWorkflowOrRuleName_ThrowsArgumentException [1 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateAbstractType_dynamicObject [2 ms]
Passed RulesEngine.UnitTest.UtilsTests.CreateAbstractClassType_WithJsonElement_ShouldConvertToExpandoObject [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRuleWithJsonElement(ruleFileName: "rules10.json") [4 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteActionWorkflowAsync_ShouldNotDuplicateInputs_WhenGlobalParamsExist(ruleFileName: "rules13.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_ManyInputs_ReturnsListOfRuleResultTree(ruleFileName: "rules2.json") [6 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_InputWithVariableProps_ReturnsResult(ruleFileName: "rules2.json") [4 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_InputWithVariableProps_ReturnsResult(ruleFileName: "rules1.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_AddOrUpdateWorkflow_ExecutesUpdatedRules(previousWorkflowFile: "rules1.json", newWorkflowFile: "rules6.json") [4 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuleWithUnaryExpression_ReturnsSucess(ruleFileName: "rules7.json") [2 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_AddOrUpdate_IncorrectJSON_ThrowsException [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuntimeError_IgnoreException_DoesNotReturnException [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuntimeError_ShouldReturnAsErrorMessage [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ContainsWorkFlowName_ShouldReturn [< 1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_Execute_Rule_For_Nested_Rule_Params_Returns_Success(ruleFileName: "rules4.json", fastExpressionEnabled: True) [15 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_Execute_Rule_For_Nested_Rule_Params_Returns_Success(ruleFileName: "rules4.json", fastExpressionEnabled: False) [7 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_InjectedRules_ContainsInjectedRules(ruleFileName: "rules2.json") [2 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.ErrorInScopedParam_ShouldAppearAsErrorMessage(workflowName: "GlobalParamsOnlyWithComplexInput") [66 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.LocalParam_GivesCorrectAnswer(workflowName: "LocalParam_CorrectAnswer") [4 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.RuntimeErrorInScopedParam_ShouldAppearAsErrorMessage(workflowName: "GlobalParamsOnlyWithComplexInput") [1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.RuntimeErrorInScopedParam_ShouldAppearAsErrorMessage(workflowName: "LocalParamsOnlyWithComplexInput") [< 1 ms]
Passed RulesEngine.UnitTest.ScopedParamsTest.WorkflowUpdate_GlobalParam_ShouldReflect(workflowName: "GlobalAndLocalParams") [2 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteAllRulesAsync_ShouldPassCancellationToken [34 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_CalledMultipleTimes_ReturnsSameResult(ruleFileName: "rules2.json") [2 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuleWithMemberAccessExpression_ReturnsSucess(ruleFileName: "rules8.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngineWithGlobalParam_RunsSuccessfully(ruleFileName: "rules11.json") [11 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuntimeError_ThrowsException [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RemoveWorkFlow_ShouldRemoveAllCompiledCache [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ClearWorkflow_RemovesAllWorkflow(ruleFileName: "rules1.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.GetAllRegisteredWorkflows_ReturnsListOfAllWorkflows(ruleFileName: "rules2.json") [< 1 ms]
[xUnit.net 00:00:01.92] RulesEngine.UnitTest.RulesEngineTest.ExecuteActionWorkflowAsync_WithCancellationToken_CancelsProperly(ruleFileName: "rules12.json") [FAIL]
[xUnit.net 00:00:01.92] Assert.IsType() Failure: Value is null
[xUnit.net 00:00:01.92] Expected: typeof(System.Threading.Tasks.TaskCanceledException)
[xUnit.net 00:00:01.92] Actual: null
[xUnit.net 00:00:01.92] Stack Trace:
[xUnit.net 00:00:01.92] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\BusinessRuleEngineTest.cs(857,0): at RulesEngine.UnitTest.RulesEngineTest.ExecuteActionWorkflowAsync_WithCancellationToken_CancelsProperly(String ruleFileName)
[xUnit.net 00:00:01.92] --- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.RulesEngineTest.GetAllRegisteredWorkflows_NoWorkflow_ReturnsEmptyList [< 1 ms]
Failed RulesEngine.UnitTest.RulesEngineTest.ExecuteActionWorkflowAsync_WithCancellationToken_CancelsProperly(ruleFileName: "rules12.json") [209 ms]
Error Message:
Assert.IsType() Failure: Value is null
Expected: typeof(System.Threading.Tasks.TaskCanceledException)
Actual: null
Stack Trace:
at RulesEngine.UnitTest.RulesEngineTest.ExecuteActionWorkflowAsync_WithCancellationToken_CancelsProperly(String ruleFileName) in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\BusinessRuleEngineTest.cs:line 857
--- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_ReturnsListOfRuleResultTree(ruleFileName: "rules2.json") [3 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_CompilationException_ReturnsAsErrorMessage(ruleFileName: "rules9.json") [3 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_WithNullInput_ShouldNotThrowException [4 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.Class_PublicMethods_ArePartOfInterface(classType: typeof(RulesEngine.RulesEngine), interfaceType: [typeof(RulesEngine.Interfaces.IRulesEngine)]) [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_SpecialCharInWorkflowName_RunsSuccessfully [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_RuleWithMethodExpression_ReturnsSucess(ruleFileName: "rules6.json") [4 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_MissingMethodInExpression_ReturnsException(ruleFileName: "rules9.json") [1 ms]
[xUnit.net 00:00:02.45] RulesEngine.UnitTest.RulesEngineTest.ExecuteAllRulesAsync_WithCancellationToken_CancelsProperly(ruleFileName: "rules12.json") [FAIL]
[xUnit.net 00:00:02.45] Assert.IsType() Failure: Value is null
[xUnit.net 00:00:02.45] Expected: typeof(System.Threading.Tasks.TaskCanceledException)
[xUnit.net 00:00:02.45] Actual: null
[xUnit.net 00:00:02.45] Stack Trace:
[xUnit.net 00:00:02.45] C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\BusinessRuleEngineTest.cs(835,0): at RulesEngine.UnitTest.RulesEngineTest.ExecuteAllRulesAsync_WithCancellationToken_CancelsProperly(String ruleFileName)
[xUnit.net 00:00:02.45] --- End of stack trace from previous location ---
[xUnit.net 00:00:02.46] Finished: RulesEngine.UnitTest (ID = '06919cee583fd99631b9c042bfb757ce4194e438efd32c882827f6b2307ec04f')
Passed RulesEngine.UnitTest.RulesEngineTest.ClearWorkFlow_ShouldRemoveAllCompiledCache [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_ExceptionScenario_RulesInvalid(ruleFileName: "rules3.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_ReturnsProperErrorOnMissingRuleParameter(ruleFileName: "rules2.json") [2 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRule_AddWorkflowWithSameName_ThrowsValidationException(previousWorkflowFile: "rules1.json", newWorkflowFile: "rules6.json") [1 ms]
Failed RulesEngine.UnitTest.RulesEngineTest.ExecuteAllRulesAsync_WithCancellationToken_CancelsProperly(ruleFileName: "rules12.json") [501 ms]
Error Message:
Assert.IsType() Failure: Value is null
Expected: typeof(System.Threading.Tasks.TaskCanceledException)
Actual: null
Stack Trace:
at RulesEngine.UnitTest.RulesEngineTest.ExecuteAllRulesAsync_WithCancellationToken_CancelsProperly(String ruleFileName) in C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\BusinessRuleEngineTest.cs:line 835
--- End of stack trace from previous location ---
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_New_IncorrectJSON_ThrowsException [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.ExecuteRuleWithIgnoreException_CompilationException_DoesNotReturnsAsErrorMessage(ruleFileName: "rules9.json") [1 ms]
Passed RulesEngine.UnitTest.RulesEngineTest.RulesEngine_New_ReturnsNotNull(ruleFileName: "rules1.json") [< 1 ms]
Total tests: 201
Passed: 193
Failed: 8
Test Run Failed.
Total time: 3.3687 Seconds
1>Project "C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\RulesEngine.UnitTest.csproj" on node 1 (VSTest target(s)).
1>_VSTestConsole:
MSB4181: The "VSTestTask" task returned false but did not log an error.
1>Done Building Project "C:\Users\asulw\OneDrive\Documents\source\Github\RulesEngine\test\RulesEngine.UnitTest\RulesEngine.UnitTest.csproj" (VSTest target(s)) -- FAILED.
Build FAILED.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:03.87