public void Should_Parse_TripleSlashWithSpaces() { // Arrange var referencer = new TripleSlashReference(); // Act var references = referencer.Parse(@" /// <reference path=""test.js"" /> "); // Assert references.Count().ShouldBe(1); references.First().Name.ShouldBe("test.js"); references.First().Type.ShouldBe(Reference.TypeEnum.Dependency); }
public void Should_Parse_TripleSlashReference_For_Libaries() { // Arrange var referencer = new TripleSlashReference(); // Act var references = referencer.Parse(@" /// <reference path=""test.js"" library/> "); // Assert references.Count().ShouldBe(1); references.First().Name.ShouldBe("test.js"); references.First().Type.ShouldBe(Reference.TypeEnum.Library); }