Skip to content

Commit 1a3e7f6

Browse files
committed
Remove superfluous unit test
Not sure why it was there in the first place
1 parent c9edd1a commit 1a3e7f6

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/Log4NetTextFormatterTest.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,6 @@ public void InvalidLogEventLevelThrowsArgumentOutOfRangeException()
157157
.And.Message.Should().StartWith("The value of argument 'level' (-1) is invalid for enum type 'LogEventLevel'.");
158158
}
159159

160-
[Fact]
161-
public void InvalidLogEventLevelWithLog4JCompatibilityThrowsArgumentOutOfRangeException()
162-
{
163-
// Arrange
164-
var logEvent = CreateLogEvent((LogEventLevel)(-1));
165-
var formatter = new Log4NetTextFormatter(c => c.UseLog4JCompatibility());
166-
167-
// Act
168-
Action action = () => formatter.Format(logEvent, TextWriter.Null);
169-
170-
// Assert
171-
action.Should().ThrowExactly<ArgumentOutOfRangeException>()
172-
.And.Message.Should().StartWith("The value of argument 'level' (-1) is invalid for enum type 'LogEventLevel'.");
173-
}
174-
175160
[Theory]
176161
[InlineData(CDataMode.Always, true)]
177162
[InlineData(CDataMode.Always, false)]

0 commit comments

Comments
 (0)