public void Find_ThrowsException_WhenIndexIsOutOfRange(int index) { Assert.Throws <IndexOutOfRangeException>(() => system.Find(index)); }
public void SystemMustRaseExceptionIfIndexLessThanZero() { Assert.That(() => ts.Find(-1) , Throws.InstanceOf <IndexOutOfRangeException>() .With.Message.EqualTo("No such index")); }