Ejemplo n.º 1
0
        public void ExcludeFilesForSymbolPackageRemovesAllContentFiles()
        {
            // Arrange
            var files = GetPackageFiles(
                @"lib\mylib.dll",
                @"lib\mylib.pdb",
                @"content\default.aspx",
                @"content\bin\extra.pdb",
                @"src\mylib.cs"
                );

            // Act
            PackCommand.ExcludeFilesForSymbolPackage(files);

            // Assert
            Assert.Equal(3, files.Count);
            Assert.Equal(files[0].Path, @"lib\mylib.dll");
            Assert.Equal(files[1].Path, @"lib\mylib.pdb");
            Assert.Equal(files[2].Path, @"src\mylib.cs");
        }
Ejemplo n.º 2
0
        public void ExcludeFilesForSymbolPackageRemovesScripts()
        {
            // Arrange
            var files = GetPackageFiles(
                @"lib\mylib.dll",
                @"lib\mylib.pdb",
                @"tools\mycmd.exe",
                @"tools\init.ps1",
                @"tools\extra.ps1",
                @"src\mylib.cs"
                );

            // Act
            PackCommand.ExcludeFilesForSymbolPackage(files);

            // Assert
            Assert.Equal(4, files.Count);
            Assert.Equal(files[0].Path, @"lib\mylib.dll");
            Assert.Equal(files[1].Path, @"lib\mylib.pdb");
            Assert.Equal(files[2].Path, @"tools\mycmd.exe");
            Assert.Equal(files[3].Path, @"src\mylib.cs");
        }