Пример #1
0
        public void AddManyAddsToCount()
        {
            var sut = new ValueConversionMatcherCollection(new ModifierBuilderStub())
            {
                { Regex, Funcs.Identity }, { Regex, Funcs.Identity }, { Regex, Funcs.Identity }
            };

            Assert.AreEqual(3, sut.Count());
        }
Пример #2
0
        public void Add()
        {
            var inputValue    = new ValueBuilder(Mock.Of <IValueBuilder>());
            var expectedValue = new ValueBuilder(Mock.Of <IValueBuilder>());
            var sut           = new ValueConversionMatcherCollection(new ModifierBuilderStub())
            {
                { Regex, _ => expectedValue }
            };

            var builder     = sut.AssertSingle(Regex);
            var actualValue = builder.ValueConverter !(inputValue);

            Assert.AreEqual(expectedValue, actualValue);
        }
Пример #3
0
        public void IsEmpty()
        {
            var sut = new ValueConversionMatcherCollection(new ModifierBuilderStub());

            Assert.IsEmpty(sut);
        }
 public void SetUp()
 {
     _sut = new ValueConversionMatcherCollection(new ModifierBuilderStub());
 }