public void GetWindowSearchConditionsWhenProcessIdIsInvalid()
        {
            List <AutomationSearchCondition> conditions = new AutomationSearchConditionFactory().GetWindowSearchConditions(0);

            Assert.AreEqual(2, conditions.Count);
            Assert.IsInstanceOfType(typeof(PropertyCondition), conditions[0].Condition);
            Assert.IsInstanceOfType(typeof(PropertyCondition), conditions[1].Condition);
        }
        public void GetWindowSearchConditionsWhenProcessIdIsValid()
        {
            List <AutomationSearchCondition> conditions = new AutomationSearchConditionFactory().GetWindowSearchConditions(1);

            Assert.AreEqual(2, conditions.Count);
            Assert.IsInstanceOf <AndCondition>(conditions[0].Condition);
            Assert.IsInstanceOf <AndCondition>(conditions[1].Condition);
        }
        public void GetWindowSearchConditionsWhenProcessIdIsInvalidTest()
        {
            var conditions = new AutomationSearchConditionFactory().GetWindowSearchConditions(0);

            Assert.That(conditions, Has.Count.EqualTo(2));
            Assert.That(conditions[0].Condition, Is.TypeOf <PropertyCondition>());
            Assert.That(conditions[1].Condition, Is.TypeOf <PropertyCondition>());
        }
        public void GetWindowSearchConditionsWhenProcessIdIsInvalid()
        {
            List <AutomationSearchCondition> conditions = new AutomationSearchConditionFactory().GetWindowSearchConditions(0);

            Assert.Equal(2, conditions.Count);
            Assert.IsType <PropertyCondition>(conditions[0].Condition);
            Assert.IsType <PropertyCondition>(conditions[1].Condition);
        }