protected override void Context()
        {
            base.Context();
            _entity = new Parameter().WithName("para");
            var cond1 = new InContainerCondition(_entity.Name);

            sut.Add(cond1);
        }
        protected override void Context()
        {
            base.Context();
            var cond1 = new InContainerCondition("TOTO");

            sut.Add(cond1);
            sut.Operator = CriteriaOperator.Or;
        }
        public void TestSerialization()
        {
            var x1 = new InContainerCondition("Franz");

            var x2 = SerializeAndDeserialize(x1);

            AssertForSpecs.AreEqualInContainerCondition(x2, x1);
        }
 protected override void Context()
 {
     base.Context();
     _descriptorCondition = new MatchTagCondition("toto");
     sut.Add(_descriptorCondition);
     _inContainerCondition = new InContainerCondition(_descriptorCondition.Tag);
     sut.Add(_inContainerCondition);
     sut.Add(new MatchTagCondition("titi"));
 }
Beispiel #5
0
        protected override Task Context()
        {
            _logger = A.Fake <IOSPSuiteLogger>();
            sut     = new DescriptorConditionMapper(_logger);

            _inContainer          = new InContainerCondition("CONT");
            _notInContainer       = new NotInContainerCondition("NOT_CONT");
            _matchAllCondition    = new MatchAllCondition();
            _notMatchAllCondition = new NotMatchTagCondition("NOT_MATCH");
            _notMatchCondition    = new MatchTagCondition("MATCH");

            return(_completed);
        }