public void CloneTest() { DataFlowElement target = new DataFlowElement("Hello"); DataFlowElement actual; actual = target.Clone(); Assert.IsNotNull(actual); Assert.AreEqual("Hello", actual.Name); }
public void CloneTest() { DataFlowElement dataFlowElement; DataFlowElement dataFlowElement1; dataFlowElement = new DataFlowElement("name", "tag"); dataFlowElement1 = dataFlowElement.Clone(); Assert.IsNotNull((object)dataFlowElement1); Assert.AreEqual <string>("name", dataFlowElement1.Name); Assert.AreEqual("tag", dataFlowElement1.Tag); Assert.AreEqual <string>("", dataFlowElement1.ToolTip); Assert.IsNotNull((object)dataFlowElement); Assert.AreEqual <string>("name", dataFlowElement.Name); Assert.AreEqual("tag", dataFlowElement.Tag); Assert.AreEqual <string>("", dataFlowElement.ToolTip); }