Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
dupdob committed Jun 7, 2017
1 parent afefc30 commit 578cbb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 5 additions & 3 deletions src/NFluent/Messages/InstanceBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ public string GetMessage()
var builder = new StringBuilder();
builder.Append("an instance");

if (this.type != null)
if (this.type == null)
{
var temp = this.fullTypeName ? this.type.AssemblyQualifiedName : this.type.ToStringProperlyFormatted();
builder.AppendFormat(" of type: [{0}]", temp);
return builder.ToString();
}

var temp = this.fullTypeName ? this.type.AssemblyQualifiedName : this.type.ToStringProperlyFormatted();
builder.AppendFormat(" of type: [{0}]", temp);

return builder.ToString();
}

Expand Down
8 changes: 0 additions & 8 deletions tests/NFluent.Tests.Internals/FluentMessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ public void BasicTest()
Assert.AreEqual(NewLine + "The checked string is ok.", message);
}

[Test]
public void BlockFailTest()
{
// ReSharper disable once ObjectCreationAsStatement
Check.ThatCode(() => { new MessageBlock(null, null, null); })
.Throws<ArgumentNullException>();
}

[Test]
public void CheckedBlockTest()
{
Expand Down

0 comments on commit 578cbb7

Please sign in to comment.