Пример #1
0
        public void Validate_ContainsAtLeastOneStartPointGateProbe_ShouldReturnFalse()
        {
            // Arange
            MinNodeValidation minNodeValidation = new MinNodeValidation();

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

            // Assert
            Assert.IsTrue(result);
        }
Пример #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);
        }