Exemple #1
0
        public void toString_should_return_code_for_enumerate()
        {
            // Given
            SUT.AddItem("My item");
            SUT.AddItem("My second item");

            // When
            var result = SUT.ToString();

            // Then
            Assert.AreEqual(@"\begin{enumerate}" + "\n\t" +
                            @"\item My item" + "\n \t" +
                            @"\item My second item" + "\n" +
                            @" \end{enumerate}" + "\n", result);
        }