public static void NotNullAll(Action action, string name, int expectedIndex) { LocalizedException ex = Assert.Throws <ValueNullException>( () => action()); ex.AssertArguments(StringUtils.Combine(name, "[", expectedIndex.ToString(), "]")); }
public static void NotNullAny(Action action, string name) { LocalizedException ex = Assert.Throws <ValueNullException>( () => action()); ex.AssertArguments(name); }