コード例 #1
0
        public void IsWebReferencesFolder_FolderDoesNotMatchWebReferencesProjectItemFolder_ReturnsFalse()
        {
            CreateProject();
            project.FileName = FileName.Create(@"C:\projects\test\foo.csproj");
            AddWebReferencesToProject(@"Web References\");

            bool result = WebReferencesProjectItem.IsWebReferencesFolder(project, @"C:\projects\test\foo");

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void IsWebReferencesFolder_FolderMatchesWebReferencesProjectItemFolder_ReturnsTrue()
        {
            CreateProject();
            project.FileName = @"C:\projects\test\foo.csproj";
            AddWebReferencesToProject(@"Web References\");

            bool result = WebReferencesProjectItem.IsWebReferencesFolder(project, @"C:\projects\test\Web References");

            Assert.IsTrue(result);
        }