public void GreaterThan_InvalidCast() { // Arrange IConditionModifier modifier = new GreaterThanModifier(); // Act Action action = () => modifier.IsConditionMet(null, null); // Assert Assert.ThrowsException<InvalidCastException>(action); }