Skip to content

Commit

Permalink
Added a missing unit test for StringExentions
Browse files Browse the repository at this point in the history
  • Loading branch information
wahidshalaly committed Mar 30, 2014
1 parent 7da2d3a commit df7092c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Humanizer.Tests/StringExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ public void CannotFormatStringWithLessArguments()
{
Assert.Throws<FormatException>(() => format.FormatWith(1, 2));
}

[Fact]
public void FormatCannotBeNull()
{
string format = null;
Assert.Throws<ArgumentNullException>(() => format.FormatWith(1, 2));
}
}
}

0 comments on commit df7092c

Please sign in to comment.