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 55using Serilog . Expressions . Tests . Support ;
66using Xunit ;
77
8- #nullable enable
9-
108namespace Serilog . Expressions . Tests . Expressions
119{
1210 public class NameResolverTests
@@ -15,15 +13,15 @@ public class NameResolverTests
1513 {
1614 if ( ! Coerce . Numeric ( number , out var num ) )
1715 return null ;
18-
16+
1917 return new ScalarValue ( num + 42 ) ;
2018 }
2119
2220 public static LogEventPropertyValue ? SecretWordAt ( string word , LogEventPropertyValue ? index )
2321 {
2422 if ( ! Coerce . Numeric ( index , out var i ) )
2523 return null ;
26-
24+
2725 return new ScalarValue ( word [ ( int ) i ] . ToString ( ) ) ;
2826 }
2927
@@ -62,7 +60,7 @@ public void UserDefinedFunctionsAreCallableInExpressions()
6260 nameResolver : new StaticMemberNameResolver ( typeof ( NameResolverTests ) ) ) ;
6361 Assert . True ( Coerce . IsTrue ( expr ( Some . InformationEvent ( ) ) ) ) ;
6462 }
65-
63+
6664 [ Fact ]
6765 public void UserDefinedFunctionsCanReceiveUserProvidedParameters ( )
6866 {
You can’t perform that action at this time.
0 commit comments