public void GlyphsFormatTestEnDash() { string text = "Observe - tiny and brief."; string expected = "Observe – tiny and brief."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestAcronym() { string text = "We use CSS(Cascading Style Sheets)."; string expected = "We use <acronym title=\"Cascading Style Sheets\">CSS</acronym>."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestEmDash() { string text = "Observe -- very nice!"; string expected = "Observe — very nice!"; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestSimpleQuotes() { string text = "'Observe!'"; string expected = "‘Observe!’"; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestEllipsis() { string text = "Observe..."; string expected = "Observe…"; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestMultipleGlyphs() { string text = "\"'I swear, captain,' replied I.\""; string expected = "“‘I swear, captain,’ replied I.”"; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestDoubleQuotes() { string text = "Go and \"Observe!\", youg man."; string expected = "Go and “Observe!”, youg man."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphFormatTestCopyrightAtBeginningOfLine() { string text = "(c) Company"; string expected = "© Company"; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestCopyright() { string text = "three(C)."; string expected = "three©."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestRegistered() { string text = "two(R)."; string expected = "two®."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestTrademark() { string text = "one(TM)."; string expected = "one™."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }
public void GlyphsFormatTestDimensionSign() { string text = "Observe: 2 x 2."; string expected = "Observe: 2 × 2."; GlyphBlockModifier f = new GlyphBlockModifier(); string actual = f.ModifyLine(text); Assert.AreEqual(expected, actual); }