Ejemplo n.º 1
0
        public void minimalConfigShouldDeclareDefaults()
        {
            ServiceDescriptor d = doLoad("minimal");

            Assert.AreEqual("myapp", d.Id);
            Assert.AreEqual("MyApp Service (powered by WinSW)", d.Caption);
            Assert.AreEqual("This service is a service created from a minimal configuration", d.Description);
            Assert.AreEqual("%BASE%\\myExecutable.exe", d.Executable);

            ServiceDescriptorAssert.AssertAllOptionalPropertiesAreDefault(d);
        }
Ejemplo n.º 2
0
        public void MinimalConfigShouldDeclareDefaults()
        {
            var desc = Load("minimal");

            Assert.That(desc.Name, Is.EqualTo("myapp"));
            Assert.That(desc.DisplayName, Is.EqualTo("MyApp Service (powered by WinSW)"));
            Assert.That(desc.Description, Is.EqualTo("This service is a service created from a minimal configuration"));
            Assert.That(desc.Executable, Is.EqualTo("%BASE%\\myExecutable.exe"));

            ServiceDescriptorAssert.AssertAllOptionalPropertiesAreDefault(desc);
        }
Ejemplo n.º 3
0
        public void AllOptionsConfigShouldDeclareDefaults()
        {
            ServiceDescriptor desc = Load("allOptions");

            Assert.That(desc.Id, Is.EqualTo("myapp"));
            Assert.That(desc.Caption, Is.EqualTo("MyApp Service (powered by WinSW)"));
            Assert.That(desc.Description, Is.EqualTo("This service is a service created from a sample configuration"));
            Assert.That(desc.Executable, Is.EqualTo("%BASE%\\myExecutable.exe"));

            ServiceDescriptorAssert.AssertAllOptionalPropertiesAreDefault(desc);
        }