public void matches_delegates()
        {
            var builder = new ConditionalTagBuilderPolicy<FakeSubject>(x => x.Level > 10, x => new HtmlTag("div"));

            builder.Matches(new FakeSubject{Level = 5}).ShouldBeFalse();
            builder.Matches(new FakeSubject{Level = 11}).ShouldBeTrue();
        }
        public void build_delegates()
        {
            var builder = new ConditionalTagBuilderPolicy<FakeSubject>(x => x.Level > 10, x => new HtmlTag("div").Text(x.Name));

            var subject = new FakeSubject
            {
                Name = "Max"
            };
            builder.BuilderFor(subject).Build(subject)
                .ToString()
                .ShouldEqual("<div>Max</div>");
        }