예제 #1
0
        public void CreateNupkg()
        {
            PathToTemp("MarkdownSharp.1.13.0.0.nupkg").AsFile().Exists().Should(Be.False);

            var unpacked = new UnpackedNupkg(PathToContent("packages", "MarkdownSharp.1.13.0.0"));
            var nupkg    = unpacked.CreateNupkg(PathToTemp(""));

            nupkg.Path.ShouldEqual(PathToTemp("MarkdownSharp-1.13.0.0.nupkg"));
            PathToTemp("MarkdownSharp-1.13.0.0.nupkg").AsFile().Exists().Should(Be.True);
            nupkg.Files.ShouldEqual(new List <string> {
                "MarkdownSharp.nuspec", "lib/35/MarkdownSharp.dll", "lib/35/MarkdownSharp.pdb", "lib/35/MarkdownSharp.xml"
            });
        }
예제 #2
0
 public void Before()
 {
     nunit  = new UnpackedNupkg(PathToContent("packages/NUnit.2.5.7.10213"));
     fluent = new UnpackedNupkg(PathToContent("packages/FluentNHibernate.1.1.0.694"));
     foo    = new UnpackedNupkg(PathToContent("more_unpacked_packages/Foo"));
 }