public void SetAndGetFormat() { TextConfiguration config = new TextConfiguration(); config.SetFormat("Keyword", "<keyword>"); Assert.IsNotNull(config.Formats); Assert.AreEqual(1, config.Formats.Count); Assert.AreEqual("<keyword>", config.Formats["Keyword"]); }
public void SetAndGetFormatWithDots() { TextConfiguration config = new TextConfiguration(); config.SetFormat("Keyword", "<keyword>...</keyword>"); Assert.IsNotNull(config.Formats); Assert.AreEqual(2, config.Formats.Count); Assert.AreEqual("<keyword>", config.Formats["KeywordBegin"]); Assert.AreEqual("</keyword>", config.Formats["KeywordEnd"]); }