File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
test/Serilog.Expressions.Tests/Expressions Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 5
5
using Serilog . Expressions . Tests . Support ;
6
6
using Xunit ;
7
7
8
- #nullable enable
9
-
10
8
namespace Serilog . Expressions . Tests . Expressions
11
9
{
12
10
public class NameResolverTests
@@ -15,15 +13,15 @@ public class NameResolverTests
15
13
{
16
14
if ( ! Coerce . Numeric ( number , out var num ) )
17
15
return null ;
18
-
16
+
19
17
return new ScalarValue ( num + 42 ) ;
20
18
}
21
19
22
20
public static LogEventPropertyValue ? SecretWordAt ( string word , LogEventPropertyValue ? index )
23
21
{
24
22
if ( ! Coerce . Numeric ( index , out var i ) )
25
23
return null ;
26
-
24
+
27
25
return new ScalarValue ( word [ ( int ) i ] . ToString ( ) ) ;
28
26
}
29
27
@@ -62,7 +60,7 @@ public void UserDefinedFunctionsAreCallableInExpressions()
62
60
nameResolver : new StaticMemberNameResolver ( typeof ( NameResolverTests ) ) ) ;
63
61
Assert . True ( Coerce . IsTrue ( expr ( Some . InformationEvent ( ) ) ) ) ;
64
62
}
65
-
63
+
66
64
[ Fact ]
67
65
public void UserDefinedFunctionsCanReceiveUserProvidedParameters ( )
68
66
{
You can’t perform that action at this time.
0 commit comments