Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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"));
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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/")));
        }
Esempio n. 7
0
        public void From_assembly_check_version_build()
        {
            var d = Deployment.FromAssembly(_configuration, "App");

            Assert.That(d.BuildVersion, Is.EqualTo("1_0_0_0"));
        }
Esempio n. 8
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")));
        }
Esempio n. 9
0
        public void From_assembly_check_file_count()
        {
            var d = Deployment.FromAssembly(_configuration, "App");

            Assert.That(d.Files, Has.Count.EqualTo(3));
        }