Esempio n. 1
0
        public void Evaluate_ShirtNotOn_IsCold_ReturnsFalse()
        {
            Person     person = new Person();
            JacketRule rule   = new JacketRule();
            bool       result = rule.Evaluate(person, WeatherType.COLD);

            Assert.IsFalse(result);
        }
Esempio n. 2
0
        public void Evaluate_ShirtOn_IsHot_ReturnsFalse()
        {
            Person person = new Person();

            person.Clothing.Add(new ClothingItem("", ClothingType.Shirt));
            JacketRule rule   = new JacketRule();
            bool       result = rule.Evaluate(person, WeatherType.HOT);

            Assert.IsFalse(result);
        }