Esempio n. 1
0
        public void Execute_InvalidSkillByName_NoMatches()
        {
            var recipes = new[] { TestRecipes.IronBar };
            var skills  = new[] { new Skill("Advanced Smelting", 1) };

            var filter  = new SkillFilter(skills);
            var matches = filter.Execute("Iron Bar", recipes);

            Assert.Empty(matches);
        }
Esempio n. 2
0
        public void Execute_InvalidSkillByLevel_NoMatches()
        {
            var recipes = new[] { TestRecipes.Brazier };
            var skills  = new[] { new Skill("Smelting", 0) };

            var filter  = new SkillFilter(skills);
            var matches = filter.Execute("Brazier", recipes);

            Assert.Empty(matches);
        }
Esempio n. 3
0
        public void Execute_ValidSkill_Matches()
        {
            var recipes = new[] { TestRecipes.IronBar };
            var skills  = new[] { new Skill("Smelting", 1) };

            var filter  = new SkillFilter(skills);
            var matches = filter.Execute("Iron Bar", recipes);

            Assert.Equal(recipes, matches);
        }