예제 #1
0
        public void PrefixClassDefaultsToql()
        {
            var op  = new DeltaInsertOp("aa");
            var c   = new OpToXmlConverter(op);
            var act = c.PrefixClass("my-class");

            act.Should().Be("ql-my-class");
        }
예제 #2
0
        public void PrefixClassWithxx()
        {
            var op = new DeltaInsertOp("aa");
            var c  = new OpToXmlConverter(op, new OpToXmlConverterOptions
            {
                ClassPrefix = "xx"
            });
            var act = c.PrefixClass("my-class");

            act.Should().Be("xx-my-class");
        }