Skip to content

Commit

Permalink
Build: improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dupdob committed Jun 13, 2017
1 parent 73cec8b commit aa2323a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/NFluent/Messages/FluentMessage.cs
Expand Up @@ -231,7 +231,6 @@ public MessageBlock ExpectedValues(object expectedValues, int index = 0)
{
this.expectedLabel = GenericLabelBlock.BuildExpectedBlock(new EntityNamer { EntityName = "value(s)" });
this.expectedBlock = new MessageBlock(this, expectedValues, this.expectedLabel, index);
this.referenceType = this.referenceType ?? expectedValues.GetTypeWithoutThrowingException();
return this.expectedBlock;
}

Expand Down
2 changes: 2 additions & 0 deletions tests/NFluent.Tests/ExceptionHelperTests.cs
Expand Up @@ -30,6 +30,8 @@ public void Should_Dump_InnerException_stack_trace()
var exception = new ArgumentException("blahblah#1", new ArgumentOutOfRangeException("blahblah#2", new Exception("blahblah#3")));

Check.That(ExceptionHelper.DumpInnerExceptionStackTrace(exception)).IsEqualTo("{ System.ArgumentOutOfRangeException } \"blahblah#2\"" +Environment.NewLine +"--> { System.Exception } \"blahblah#3\"");
exception = new ArgumentException("blahblah#1", new ArgumentOutOfRangeException("blahblah#2", new Exception("blahblah#3")));
Check.That(ExceptionHelper.DumpInnerExceptionStackTrace(exception)).IsEqualTo("{ System.ArgumentOutOfRangeException } \"blahblah#2\"" + Environment.NewLine + "--> { System.Exception } \"blahblah#3\"");
}

[Test]
Expand Down

0 comments on commit aa2323a

Please sign in to comment.