Exemplo n.º 1
0
        public void test_only_on_agents_no_list()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit();

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine"), Is.True);
        }
Exemplo n.º 2
0
        public void test_only_on_agents_when_direct_and_wildcardmatch()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit {
                OnlyOnAgents = new[] { "test_machine-01", "test_machine-*" }
            };

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine-01"), Is.True);
        }
Exemplo n.º 3
0
        public void test_only_on_agents_when_in_list()
        {
            // Arrange
            var unit = new WindowsServiceDeployUnit {
                OnlyOnAgents = new[] { "test_machine-02", "test_machine-01" }
            };

            // Act & Assert
            Assert.That(unit.IsValidForAgent("test_machine-01"), Is.True);
        }