Exemplo n.º 1
0
        public void Can_Parse_Comment__Library_Reference()
        {
            // Arrange
            var referencer = new SlashSlashEqualReference();

            // Act
            var references = referencer.Parse(@"
            //= library module1.js
            ");
            // Assert
            references.Count().ShouldBe(1);
            references.First().Name.ShouldBe("module1.js");
            references.First().Type.ShouldBe(Reference.TypeEnum.Library);
        }
Exemplo n.º 2
0
        public void Should_Find_CoffeeScript_Library()
        {
            // Arrange
            var referencer = new SlashSlashEqualReference();

            // Act
            var references = referencer.Parse("#= library 'mod4.coffee'\r\n\r\nt = 4").ToList();

            // Assert
            references.Count().ShouldBe(1);
            references.First().Name.ShouldBe("mod4.coffee");
            references.First().Type.ShouldBe(Reference.TypeEnum.Library);
        }