public void GetCssClassesReturnsNoClassesWithInlineStyles() { var o = new DeltaInsertOp("f", _styleAttributes); var c = new OpToXmlConverter(o, _styleConverterOptions); c.GetCssClasses().Should().BeEquivalentTo(new string[] { }); }
public void GetCssClassesReturnsClasses() { var o = new DeltaInsertOp("f", _styleAttributes); var c = new OpToXmlConverter(o); c.GetCssClasses().Should().BeEquivalentTo(_styleClasses); }
public void GetCssClassesReturnsEmptyArrayWithNoClasses() { var op = new DeltaInsertOp("hello"); var c = new OpToXmlConverter(op); c.GetCssClasses().Should().BeEquivalentTo(new string[] { }); }
public void GetCssClassesReturnsClassesForFormula() { var o = new DeltaInsertOp(new InsertDataFormula(""), _styleAttributes); var c = new OpToXmlConverter(o); c.GetCssClasses().Should().BeEquivalentTo(_styleClasses.Concat( Enumerable.Repeat("ql-formula", 1))); }
public void GetCssClassesWithBackgroundClasses() { var o = new DeltaInsertOp("f", _styleAttributes); var c = new OpToXmlConverter(o, new OpToXmlConverterOptions() { AllowBackgroundClasses = true }); c.GetCssClasses().Should().BeEquivalentTo(_styleClasses.Concat( Enumerable.Repeat("ql-background-red", 1))); }