示例#1
0
        public void Url()
        {
            Assert.Null(Builder.Manifest.Url);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Url("Url");

            Assert.Same(builder, Builder);
            Assert.Equal("Url", Builder.Manifest.Url);
        }
示例#2
0
        public void Version()
        {
            Assert.Null(Builder.Manifest.Version);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Version("Version");

            Assert.Same(builder, Builder);
            Assert.Equal("Version", Builder.Manifest.Version);
        }
示例#3
0
        public void Namespace()
        {
            Assert.Null(Builder.Manifest.Namespace);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Namespace("Namespace");

            Assert.Same(builder, Builder);
            Assert.Equal("Namespace", Builder.Manifest.Namespace);
        }
示例#4
0
        public void Title()
        {
            Assert.Null(Builder.Manifest.Title);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Title("Title");

            Assert.Same(builder, Builder);
            Assert.Equal("Title", Builder.Manifest.Title);
        }
示例#5
0
        public void Publisher()
        {
            Assert.Null(Builder.Manifest.Publisher);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Publisher("Publisher");

            Assert.Same(builder, Builder);
            Assert.Equal("Publisher", Builder.Manifest.Publisher);
        }
示例#6
0
        public void License()
        {
            Assert.Null(Builder.Manifest.License);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.License("License");

            Assert.Same(builder, Builder);
            Assert.Equal("License", Builder.Manifest.License);
        }
示例#7
0
        public void Description()
        {
            Assert.Null(Builder.Manifest.Description);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Description("Description");

            Assert.Same(builder, Builder);
            Assert.Equal("Description", Builder.Manifest.Description);
        }
示例#8
0
        public void Copyright()
        {
            Assert.Null(Builder.Manifest.Copyright);

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Copyright("Copyright");

            Assert.Same(builder, Builder);
            Assert.Equal("Copyright", Builder.Manifest.Copyright);
        }
示例#9
0
        public void Signature()
        {
            Assert.Null(Builder.Manifest.Signature);

            Packaging.Manifest.PackageManifestSignature signature = new Packaging.Manifest.PackageManifestSignature();
            Packaging.Manifest.PackageManifestBuilder   builder   = Builder.Signature(signature);

            Assert.Same(builder, Builder);
            Assert.Same(signature, Builder.Manifest.Signature);
        }
示例#10
0
        public void Files()
        {
            Assert.Null(Builder.Manifest.Files);

            IList <Packaging.Manifest.PackageManifestFile> files = new List <Packaging.Manifest.PackageManifestFile>();

            Packaging.Manifest.PackageManifestBuilder builder = Builder.Files(files);

            Assert.Same(builder, Builder);
            Assert.Same(files, Builder.Manifest.Files);
        }
示例#11
0
        public void Constructor()
        {
            Packaging.Manifest.PackageManifestBuilder test = new Packaging.Manifest.PackageManifestBuilder();

            Assert.NotNull(test.Manifest);
            Assert.Null(test.Manifest.Title);

            Packaging.Manifest.PackageManifest manifest = new Packaging.Manifest.PackageManifest();
            manifest.Title = "manifest";

            test = new Packaging.Manifest.PackageManifestBuilder(manifest);

            Assert.NotNull(test.Manifest);
            Assert.Equal(test.Manifest.Title, "manifest");
        }
示例#12
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PackageManifestBuilder"/> class.
 /// </summary>
 public PackageManifestBuilder()
 {
     Builder = new Packaging.Manifest.PackageManifestBuilder();
 }