コード例 #1
0
        public void CenterJustifier_FormatsCellCenterAligned_WithNoBorders()
        {
            var centerJustifier = new CenterJustifier();

            Assert.That(centerJustifier.GetAlignment(), Is.EqualTo('c'));
            Assert.That(centerJustifier.Justify("text", false), Is.EqualTo(@"\multicolumn{1}{c}{text}"));
        }
コード例 #2
0
        public void CenterJustifier_FormatsCellCenterAligned()
        {
            var centerJustifier = new CenterJustifier();

            Assert.That(centerJustifier.GetAlignment(), Is.EqualTo('c'));
            Assert.That(centerJustifier.Justify("text", true), Is.EqualTo(@"\multicolumn{1}{|c|}{text}"));
        }