Ejemplo n.º 1
0
        public static void NotNullAll(Action action, string name, int expectedIndex)
        {
            LocalizedException ex = Assert.Throws <ValueNullException>(
                () => action());

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

            ex.AssertArguments(name);
        }