Fixed broken test.

This commit is contained in:
Dario Solera 2010-12-26 10:45:46 +00:00
parent 1973ee9075
commit 8013dfcaf3

View file

@ -68,8 +68,8 @@ namespace ScrewTurn.Wiki.SearchEngine.Tests {
Assert.AreEqual(WordLocation.Content, WordLocation.GetInstance(3), "Wrong instance"); Assert.AreEqual(WordLocation.Content, WordLocation.GetInstance(3), "Wrong instance");
} }
[TestCase(0, ExpectedException = typeof(ArgumentException))] [TestCase((byte)0, ExpectedException = typeof(ArgumentOutOfRangeException))]
[TestCase(4, ExpectedException = typeof(ArgumentException))] [TestCase((byte)4, ExpectedException = typeof(ArgumentOutOfRangeException))]
public void StaticMethods_GetInstance_InvalidLocation(byte location) { public void StaticMethods_GetInstance_InvalidLocation(byte location) {
WordLocation.GetInstance(location); WordLocation.GetInstance(location);
} }