public void CheckRequiredInitializers()
        {
            // Arrange
            var b    = new FlowBuilder();
            var node = b.Activity <DelayedIncrementActivity>();

            var validator = new ActivityInitializationValidator();

            // Act
            validator.Validate(b.CreateFlow());

            // Assert
            Assert.That(validator.Result.GetErrorsOf(node), Is.Not.Empty);
        }
        public void NoErrorsWhenGood()
        {
            // Arrange
            var b    = new FlowBuilder();
            var node = b.Activity <DelayedIncrementActivity>();

            node.Bind(a => a.X).To(1);

            var validator = new ActivityInitializationValidator();

            // Act
            validator.Validate(b.CreateFlow());

            // Assert
            Assert.That(validator.Result.GetErrorsOf(node), Is.Empty);
        }