Helper class used to build and configure layout definitions.
Esempio n. 1
0
        public void BuildFluentPatternDefinitionWithAction()
        {
            var builder = new LayoutDefinitionBuilder();

            FluentPatternLayoutDefinition expected = null;
            var actual = builder.Pattern(x => expected = x);

            Assert.That(actual, Is.SameAs(expected));
        }
        public void BuildFluentPatternDefinitionWithAction()
        {
            var builder = new LayoutDefinitionBuilder();

            FluentPatternLayoutDefinition expected = null;
            var actual = builder.Pattern(x => expected = x);

            Assert.That(actual, Is.SameAs(expected));
        }
        public void BuildFluentPatternDefinitionWithString()
        {
            const string pattern = "abc123";
            var builder = new LayoutDefinitionBuilder();

            var definition = builder.Pattern(pattern);

            var layout = (PatternLayout)((ILayoutDefinition)definition).CreateLayout();
            Assert.That(layout.ConversionPattern, Is.EqualTo(pattern));
        }
Esempio n. 4
0
        public void BuildFluentPatternDefinitionWithString()
        {
            const string pattern = "abc123";
            var          builder = new LayoutDefinitionBuilder();

            var definition = builder.Pattern(pattern);

            var layout = (PatternLayout)((ILayoutDefinition)definition).CreateLayout();

            Assert.That(layout.ConversionPattern, Is.EqualTo(pattern));
        }