public void From_assembly_check_file_hashes() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Files[0].Hash, Is.EqualTo("32fe50ad52b26d8afad1e26d8af2a614")); Assert.That(d.Files[1].Hash, Is.EqualTo("feb8a12f54cdbca11133449147e40b28")); Assert.That(d.Files[2].Hash, Is.EqualTo("8458173506da806f2a7b5916177ddebf")); }
public void From_assembly_check_file_sizes() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Files[0].Size, Is.EqualTo(4608)); Assert.That(d.Files[1].Size, Is.EqualTo(77)); Assert.That(d.Files[2].Size, Is.EqualTo(235)); }
public void From_assembly_check_file_names() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Files[0].Name, Is.EqualTo("App.exe")); Assert.That(d.Files[1].Name, Is.EqualTo("App.exe.config")); Assert.That(d.Files[2].Name, Is.EqualTo(@"Source\Program.cs")); }
public void From_assembly_excluded_files(string wildcard) { var excludedList = new List <string> { wildcard }; var d = Deployment.FromAssembly(_configuration, "App", excludedList); Assert.That(d.Files, Has.Count.EqualTo(2)); }
public void From_assembly_excluded_extension(string file) { using (File.Open(file, FileMode.Create)) { } var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Files, Has.Count.EqualTo(3)); File.Delete(file); }
public void From_assembly_check_address() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Address, Is.EqualTo(new Uri("http://localhost:1234/App/1_0_0_0/"))); }
public void From_assembly_check_version_build() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.BuildVersion, Is.EqualTo("1_0_0_0")); }
public void From_assembly_check_version() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Version, Is.EqualTo(new Version("1.0.0.0"))); }
public void From_assembly_check_file_count() { var d = Deployment.FromAssembly(_configuration, "App"); Assert.That(d.Files, Has.Count.EqualTo(3)); }