Esempio n. 1
0
        public void GetLatex_ContainerWithMultipleElement_CorrectGenerateLatexCode()
        {
            var container = new StructureMock();

            container.AddElement(new SimpleText("New element v1"));
            container.AddElement(new SimpleText("New element v2"));

            AssertExtensions.CompareLatex(container.GetLatex(),
                                          @"\begin{ContainerBeginValue}
                                                ContainerSeparatorValue
                                                    New element v1
                                                ContainerSeparatorValue
                                                    New element v2
                                                ContainerSeparatorValue
                                            \end{ContainerEndValue}");
        }
Esempio n. 2
0
        public void AddElement_CorrectAddElemntToGroup()
        {
            var container = new StructureMock();

            container.AddElement(new SimpleText("New element"));

            Assert.Equal(1, container.Elements.Count);
        }