Ejemplo 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"));
        }
Ejemplo 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));
        }
Ejemplo 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"));
        }
Ejemplo 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));
        }
Ejemplo 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);
        }
Ejemplo 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/")));
        }
Ejemplo 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"));
        }
Ejemplo 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")));
        }
Ejemplo n.º 9
0
        public void From_assembly_check_file_count()
        {
            var d = Deployment.FromAssembly(_configuration, "App");

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