File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
CorrelatorSharp.Logging.Tests Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4+ using System . Runtime . CompilerServices ;
45using System . Text ;
56using System . Threading . Tasks ;
67using Machine . Specifications ;
@@ -18,9 +19,15 @@ public class When_creating_a_logger_for_the_current_class
1819 } ;
1920
2021 Because of = ( ) => {
21- Logger = TestClass . CreateCurrentClassLogger ( ) ;
22+ Logger = CreateLogger ( ) ;
2223 } ;
2324
25+ [ MethodImpl ( MethodImplOptions . NoInlining ) ]
26+ private static ILogger CreateLogger ( )
27+ {
28+ return TestClass . CreateCurrentClassLogger ( ) ;
29+ }
30+
2431
2532 It should_name_the_logger_with_the_class_name = ( ) => {
2633 Logger . Name . ShouldEqual ( typeof ( TestClass ) . FullName ) ;
@@ -31,6 +38,7 @@ public class When_creating_a_logger_for_the_current_class
3138
3239 internal class TestClass
3340 {
41+ [ MethodImpl ( MethodImplOptions . NoInlining ) ]
3442 public ILogger CreateCurrentClassLogger ( )
3543 {
3644 return LogManager . GetCurrentClassLogger ( ) ;
You can’t perform that action at this time.
0 commit comments