Ejemplo n.º 1
0
        public void Validate_ContainsAtLeastOneStartPointGateProbe_ShouldReturnFalse()
        {
            // Arange
            MinNodeValidation minNodeValidation = new MinNodeValidation();

            // Act
            bool result = minNodeValidation.Validate(_nodeDefinitions);

            // Assert
            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        public void Validate_NotContainsAtLeastOneStartPointGateProbe_ShouldReturnFalse()
        {
            // Arange
            MinNodeValidation minNodeValidation = new MinNodeValidation();

            _nodeDefinitions.Remove(_nodeDefinitions.FirstOrDefault(node => node.Name == "NODE1"));

            // Act
            bool result = minNodeValidation.Validate(_nodeDefinitions);

            // Assert
            Assert.IsFalse(result);
        }