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); }
public void NodeAppendItself() { var node = new TestNode(); Assert.That(() => node.Append(node), Throws.ArgumentException); }
public void NodeParentNull() { var node = new TestNode(); Assert.That(node.Parent, Is.Null); }
public void NodeAppend_Red() { var node = new TestNode(); Assert.That(node.ChildrenCount, Is.EqualTo(0)); }