public void ToString_NotItalicOrBold_ReturnsValue() { // Arrange var latex = new LatexString("String Value"); // Act var result = latex.ToString(); // Assert Assert.AreEqual("String Value", result); }
public void ToString_ItalicAndBoldAndEnquote_ReturnsItalicAndBoldValue() { // Arrange var latex = new LatexString("String Value") { Bold = true, Italic = true, Enquote = true }; // Act var result = latex.ToString(); // Assert Assert.AreEqual(@"\enquote{\textbf{\emph{String Value}}}", result); }
public void ToString_Bold_ReturnsBoldValue() { // Arrange var latex = new LatexString("String Value") { Bold = true }; // Act var result = latex.ToString(); // Assert Assert.AreEqual(@"\textbf{String Value}", result); }
public void ToString_Enquote_ReturnsBoldValue() { // Arrange var latex = new LatexString("String Value") { Enquote = true }; // Act var result = latex.ToString(); // Assert Assert.AreEqual(@"\enquote{String Value}", result); }
public void ToString_Italic_ReturnsItalicValue() { // Arrange var latex = new LatexString("String Value") { Italic = true }; // Act var result = latex.ToString(); // Assert Assert.AreEqual(@"\emph{String Value}", result); }