Match() public method

Match a test against a single value.
public Match ( ITest test ) : bool
test ITest
return bool
Ejemplo n.º 1
0
        public void Match_SingleId()
        {
            var filter = new IdFilter(_dummyFixture.Id);

            Assert.That(filter.Match(_dummyFixture));
            Assert.False(filter.Match(_anotherFixture));
        }
Ejemplo n.º 2
0
        public void Match_SingleId()
        {
            var filter = new IdFilter(_dummyFixture.Id);

            Assert.That(filter.Match(_dummyFixture));
            Assert.False(filter.Match(_anotherFixture));
        }
Ejemplo n.º 3
0
        public void Match_MultipleIds()
        {
            var filter = new IdFilter(new string[] { _dummyFixture.Id, _anotherFixture.Id });

            Assert.That(filter.Match(_dummyFixture));
            Assert.That(filter.Match(_anotherFixture));

            Assert.False(filter.Match(_yetAnotherFixture));
        }
Ejemplo n.º 4
0
        public void Match_MultipleIds()
        {
            var filter = new IdFilter(new string[] { _dummyFixture.Id, _anotherFixture.Id });

            Assert.That(filter.Match(_dummyFixture));
            Assert.That(filter.Match(_anotherFixture));

            Assert.False(filter.Match(_yetAnotherFixture));
        }
Ejemplo n.º 5
0
        public void AddIds()
        {
            var filter = new IdFilter();

            filter.Add(_dummyFixture.Id);
            filter.Add(_anotherFixture.Id);

            Assert.That(filter.Match(_dummyFixture));
            Assert.That(filter.Match(_anotherFixture));
            Assert.False(filter.Match(_yetAnotherFixture));
        }
Ejemplo n.º 6
0
        public void IdFilter_ConstructWithSingleId()
        {
            var filter = new IdFilter(dummyFixture.Id);

            Assert.False(filter.IsEmpty);
            Assert.That(filter.Match(dummyFixture));
            Assert.False(filter.Match(anotherFixture));
        }
Ejemplo n.º 7
0
        public void IdFilter_AddIds()
        {
            var filter = new IdFilter();
            filter.Add(dummyFixture.Id);
            filter.Add(anotherFixture.Id);

            Assert.False(filter.IsEmpty);
            Assert.That(filter.Match(dummyFixture));
            Assert.That(filter.Match(anotherFixture));
            Assert.False(filter.Match(yetAnotherFixture));
        }
Ejemplo n.º 8
0
        public void IdFilter_ConstructWithMultipleIds()
        {
            var filter = new IdFilter(new string[] { dummyFixture.Id, anotherFixture.Id });

            Assert.False(filter.IsEmpty);
            Assert.That(filter.Match(dummyFixture));
            Assert.That(filter.Match(anotherFixture));
            Assert.False(filter.Match(yetAnotherFixture));
        }
Ejemplo n.º 9
0
        public void AddIds()
        {
            var filter = new IdFilter();
            filter.Add(_dummyFixture.Id);
            filter.Add(_anotherFixture.Id);

            Assert.That(filter.Match(_dummyFixture));
            Assert.That(filter.Match(_anotherFixture));
            Assert.False(filter.Match(_yetAnotherFixture));
        }