public void Add()
        {
            var inputValue    = new ValueBuilder(Mock.Of <IValueBuilder>());
            var expectedValue = new ValueBuilder(Mock.Of <IValueBuilder>());

            _sut.Add(Regex, _ => expectedValue);

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

            Assert.AreEqual(expectedValue, actualValue);
        }
Exemple #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);
        }