public void GetTagsNoTags() { var op = new DeltaInsertOp("hello"); var c = new OpToXmlConverter(op); c.GetTags().Should().BeEquivalentTo(new string[] { }); }
public void GetTagsForFormula() { var o = new DeltaInsertOp(new InsertDataFormula("")); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "span" }); }
public void GetTagsForVideo() { var o = new DeltaInsertOp(new InsertDataVideo("")); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "iframe" }); }
public void GetTagsForHeader() { var o = new DeltaInsertOp("", new OpAttributes { Header = 2 }); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "h2" }); }
public void GetTagsForList() { var o = new DeltaInsertOp("", new OpAttributes { List = ListType.Bullet }); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "li" }); }
public void GetTagsForCodeBlock() { var o = new DeltaInsertOp("", new OpAttributes { CodeBlock = true }); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "pre" }); }
public void GetTagsForMulti() { var o = new DeltaInsertOp("", new OpAttributes { Link = "http", Script = ScriptType.Sub, Bold = true, Italic = true, Strike = true, Underline = true }); var c = new OpToXmlConverter(o); c.GetTags().Should().BeEquivalentTo(new string[] { "a", "sub", "strong", "em", "s", "u" }); }