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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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"); }
/// <summary> /// Initializes a new instance of the <see cref="PackageManifestBuilder"/> class. /// </summary> public PackageManifestBuilder() { Builder = new Packaging.Manifest.PackageManifestBuilder(); }