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 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
+ using System . Runtime . CompilerServices ;
4
5
using System . Text ;
5
6
using System . Threading . Tasks ;
6
7
using Machine . Specifications ;
@@ -18,9 +19,15 @@ public class When_creating_a_logger_for_the_current_class
18
19
} ;
19
20
20
21
Because of = ( ) => {
21
- Logger = TestClass . CreateCurrentClassLogger ( ) ;
22
+ Logger = CreateLogger ( ) ;
22
23
} ;
23
24
25
+ [ MethodImpl ( MethodImplOptions . NoInlining ) ]
26
+ private static ILogger CreateLogger ( )
27
+ {
28
+ return TestClass . CreateCurrentClassLogger ( ) ;
29
+ }
30
+
24
31
25
32
It should_name_the_logger_with_the_class_name = ( ) => {
26
33
Logger . Name . ShouldEqual ( typeof ( TestClass ) . FullName ) ;
@@ -31,6 +38,7 @@ public class When_creating_a_logger_for_the_current_class
31
38
32
39
internal class TestClass
33
40
{
41
+ [ MethodImpl ( MethodImplOptions . NoInlining ) ]
34
42
public ILogger CreateCurrentClassLogger ( )
35
43
{
36
44
return LogManager . GetCurrentClassLogger ( ) ;
You can’t perform that action at this time.
0 commit comments