public void descriptors_with_simplified_use_master_grammar_should_detect_element_correctly()
        {
            var builder = new FubuDescriptorBuilder();

            ParseResult<string> a = builder.ParseUseMaster(new Position(new SourceContext("<use master='a'/>")));
            ParseResult<string> b = builder.ParseUseMaster(new Position(new SourceContext("<use\r\nmaster \r\n =\r\n'b' />")));
            ParseResult<string> c = builder.ParseUseMaster(new Position(new SourceContext("<use master=\"c\"/>")));
            ParseResult<string> def = builder.ParseUseMaster(new Position(new SourceContext("  x <use etc=''/> <use master=\"def\"/> y ")));
            ParseResult<string> none = builder.ParseUseMaster(new Position(new SourceContext("  x <use etc=''/> <using master=\"def\"/> y ")));
            ParseResult<string> g = builder.ParseUseMaster(new Position(new SourceContext("-<use master=\"g\"/>-<use master=\"h\"/>-")));

            a.Value.ShouldEqual("a");
            b.Value.ShouldEqual("b");
            c.Value.ShouldEqual("c");
            def.Value.ShouldEqual("def");
            none.ShouldBeNull();
            g.Value.ShouldEqual("g");
        }
 public static void AddFilter(this FubuDescriptorBuilder target, IDescriptorFilter filter)
 {
     target.Filters.Add(filter);
 }