コード例 #1
0
        public void IsSatisfiedBy_WithEqualStringValue_ReturnsTrue()
        {
            var value  = "test";
            var filter = new EqFilter(ValueResolver, value);

            var result = filter.IsSatisfiedBy(value);

            Assert.True(result);
        }
コード例 #2
0
        public void IsSatisfiedBy_WithEqualObjectValue_ReturnsTrue()
        {
            var value  = new object();
            var filter = new EqFilter(ValueResolver, value);

            var result = filter.IsSatisfiedBy(value);

            Assert.True(result);
        }
コード例 #3
0
        public void IsSatisfiedBy_WithNonEqualValue_ReturnsFalse()
        {
            var value  = 1;
            var input  = "test";
            var filter = new EqFilter(ValueResolver, value);

            var result = filter.IsSatisfiedBy(input);

            Assert.False(result);
        }