public void DecoratorAppendNoException()
        {
            var node = new TestNode();

            Assert.That(() => node.AppendDecorator(new ConditionFail()), Throws.Nothing);
        }
        public void DecoratorAppendNullThrowsException()
        {
            var node = new TestNode();

            Assert.That(() => node.AppendDecorator(null), Throws.ArgumentNullException);
        }
Example #3
0
        public void NodeAppendItself()
        {
            var node = new TestNode();

            Assert.That(() => node.Append(node), Throws.ArgumentException);
        }
Example #4
0
        public void NodeParentNull()
        {
            var node = new TestNode();

            Assert.That(node.Parent, Is.Null);
        }
Example #5
0
        public void NodeAppend_Red()
        {
            var node = new TestNode();

            Assert.That(node.ChildrenCount, Is.EqualTo(0));
        }