1
1
using System ;
2
2
using FluentAssertions ;
3
- using Xunit ;
4
3
5
4
namespace Serilog . Formatting . Log4Net . Tests ;
6
5
7
6
public class IndentationSettingsTest
8
7
{
9
- [ Theory ]
10
- [ InlineData ( Indentation . Space , 2 , " " ) ]
11
- [ InlineData ( Indentation . Tab , 2 , "\t \t " ) ]
12
- [ InlineData ( Indentation . Space , 4 , " " ) ]
13
- [ InlineData ( Indentation . Tab , 4 , "\t \t \t \t " ) ]
8
+ [ Test ]
9
+ [ Arguments ( Indentation . Space , ( byte ) 2 , " " ) ]
10
+ [ Arguments ( Indentation . Tab , ( byte ) 2 , "\t \t " ) ]
11
+ [ Arguments ( Indentation . Space , ( byte ) 4 , " " ) ]
12
+ [ Arguments ( Indentation . Tab , ( byte ) 4 , "\t \t \t \t " ) ]
14
13
public void IndentationSettingsToString ( Indentation indentation , byte size , string expectedString )
15
14
{
16
15
// Arrange
@@ -23,7 +22,7 @@ public void IndentationSettingsToString(Indentation indentation, byte size, stri
23
22
indentationString . Should ( ) . Be ( expectedString ) ;
24
23
}
25
24
26
- [ Fact ]
25
+ [ Test ]
27
26
public void InvalidIndentation ( )
28
27
{
29
28
// Act
@@ -34,7 +33,7 @@ public void InvalidIndentation()
34
33
. Which . Message . Should ( ) . StartWith ( "The value of argument 'indentation' (-1) is invalid for enum type 'Indentation'." ) ;
35
34
}
36
35
37
- [ Fact ]
36
+ [ Test ]
38
37
public void InvalidSize ( )
39
38
{
40
39
// Act
0 commit comments