Changed an Assert to an AssertThrow.