Permalink
Browse files

Remove obsolete test

  • Loading branch information...
dupdob committed Jun 7, 2017
1 parent afefc30 commit 578cbb7632300056f3c46209b03cc700a21d8c05
Showing with 5 additions and 11 deletions.
  1. +5 −3 src/NFluent/Messages/InstanceBlock.cs
  2. +0 −8 tests/NFluent.Tests.Internals/FluentMessageTests.cs
@@ -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();
}
@@ -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()
{

0 comments on commit 578cbb7

Please sign in to comment.