Пример #1
0
        public void codeIndicators_should_return_documentClass_handled()
        {
            // Given
            LaTeXElementParser sut = new DocumentClassParser();

            // When
            var result = sut.CodeIndicators;

            // Then
            CollectionAssert.Contains(result, @"\\\\documentclass");
        }
Пример #2
0
        public void codeIndicators_should_return_usePackages_with_parameter()
        {
            // Given
            LaTeXElementParser sut = new DocumentClassParser();

            // When
            var result = sut.CodeIndicators;

            // Then
            CollectionAssert.Contains(result, @"\\usepackage\[([^}]+)\}");
        }
Пример #3
0
 public void Teardown()
 {
     SUT = null;
 }
Пример #4
0
 public void Setup()
 {
     SUT = new DocumentClassParser();
 }