Пример #1
0
        public void Ctor_SingleFilter_ReturnsITextFilter()
        {
            var filter = new MockTextFilter(true);

            var obj = new GroupFilter(filter);

            Assert.IsAssignableFrom <ITextFilter>(obj);
        }
Пример #2
0
        public void Ctor_Filters_ReturnsITextFilter()
        {
            var filter1 = new MockTextFilter(true);
            var filter2 = new MockTextFilter(true);

            var obj = new GroupFilter(filter1, filter2);

            Assert.IsAssignableFrom <ITextFilter>(obj);
        }
Пример #3
0
        public void ShouldChangeText_FilterReturnsResult_ReturnsExpected(
            bool filter1Result,
            bool filter2Result,
            bool expectedResult)
        {
            var filter1     = new MockTextFilter(filter1Result);
            var filter2     = new MockTextFilter(filter2Result);
            var groupFilter = new GroupFilter(filter1, filter2);

            var result = groupFilter.ShouldChangeText(null !, string.Empty, default, string.Empty);