Ejemplo n.º 1
0
        public void HasParentFieldOfTypeMethodTest()
        {
            var field = new DestinationField(new Connection());
            field.ParentField = new DestinationField(new Connection()){DataType = NodeDataType.Boolean, 
                    ParentField = new DestinationField(new Connection()){DataType = NodeDataType.GageRR}};

            //Doesn't match
            Assert.IsFalse(field.HasParentFieldOfType(NodeDataType.File));

            //Matches
            Assert.IsTrue(field.HasParentFieldOfType(NodeDataType.GageRR));
        }