Esempio n. 1
0
        public void AndNodeTest(bool input1, bool input2, bool expectedOutput)
        {
            var node   = new AndNode("");
            var states = new List <State>
            {
                new State(input1),
                new State(input2)
            };

            node.Calculate(states.ToArray());

            Assert.Equal(expectedOutput, node.CurrentState.LogicState);
        }