serilog-contrib / SerilogSinksInMemory

In-memory sink for Serilog to use for testing
MIT License
53 stars 7 forks source link

Property chaining #15

Closed rafek1241 closed 3 years ago

rafek1241 commented 3 years ago

Actual

var a = ... .Appearing()
                .Once()
                .WithLevel(LogEventLevel.Error);
a 
                .WithProperty()
                .WithValue();

a 
                .WithProperty()
                .WithValue();

Expected:

a
                .WithProperty()
                .WithValue()
                .And
                .WithProperty()
                .WithValue();;
hhko commented 3 years ago

:cupid:

sandermvanvliet commented 3 years ago

@rafek1241 thanks for reporting this!

Sorry that it took a while to respond but this issue is fixed in #18 and will be available with version 0.7.0 of the assertions package on NuGet shortly.