public void GotParamNode3() { string filename = @"Content\ActionRefParam.xml"; BulletPattern pattern = new BulletPattern(); pattern.ParseXML(filename); ActionNode testActionNode = pattern.RootNode.GetChild(ENodeName.action) as ActionNode; FireNode testFireNode = testActionNode.GetChild(ENodeName.fire) as FireNode; BulletNode testBulletNode = testFireNode.GetChild(ENodeName.bullet) as BulletNode; ActionRefNode testActionRefNode = testBulletNode.GetChild(ENodeName.actionRef) as ActionRefNode; Assert.IsNotNull(testActionRefNode.GetChild(ENodeName.param) as ParamNode); }
public void GotParamNode3() { var filename = TestUtils.GetFilePath(@"Content\ActionRefParam.xml"); BulletPattern pattern = new BulletPattern(); pattern.Parse(filename); ActionNode testActionNode = pattern.RootNode.GetChild(NodeName.action) as ActionNode; FireNode testFireNode = testActionNode.GetChild(NodeName.fire) as FireNode; BulletNode testBulletNode = testFireNode.GetChild(NodeName.bullet) as BulletNode; ActionRefNode testActionRefNode = testBulletNode.GetChild(NodeName.actionRef) as ActionRefNode; Assert.IsNotNull(testActionRefNode.GetChild(NodeName.param) as ParamNode); }