Exemplo n.º 1
0
        public void PanelTooShortPatternsThrowTest()
        {
            var patternTooShort = new StrikePanel[0, All.Dimensions.PanelsPerPatternWidth];

            void TestCodeTooShort()
            {
                var _ = new CraftingRecipe(newCraftingRecipeID, "will fail", "", "",
                                           productList, ingredientList, patternTooShort);
            }

            Assert.Throws <IndexOutOfRangeException>(TestCodeTooShort);
        }
Exemplo n.º 2
0
        public void PanelTooNarrowPatternsThrowTest()
        {
            var patternTooNarrow = new StrikePanel[All.Dimensions.PanelsPerPatternHeight, 0];

            void TestCodeTooNarrow()
            {
                var _ = new CraftingRecipe(newCraftingRecipeID, "will fail", "", "",
                                           productList, ingredientList, patternTooNarrow);
            }

            Assert.Throws <IndexOutOfRangeException>(TestCodeTooNarrow);
        }