Ejemplo n.º 1
0
 public void SourceFieldNodeGetFullPathShouldReturnJustFieldNameIfDoesNotHasParentTest()
 {
     var node = new SourceFieldNode(NodeDataType.String, "Field", "Value", "Set", "PropertyPath");
     Assert.AreEqual("Field", node.GetFullPath());
 }
Ejemplo n.º 2
0
 public void SourceFieldNodeGetFullPathShouldReturnParentNodeNameIfHasParentTest()
 {
     var node = new SourceFieldNode(NodeDataType.String, "Field", "Value", "Set", "PropertyPath", "SystemName", "ObjectName", new SourceFieldNode(NodeDataType.String, "ParentField", "Value", "Set", "PropertyPath"));
     Assert.AreEqual("ParentField.SystemName", node.GetFullPath());
 }