public void FormParameter_Clone() { FormParameterPoker FormParam = new FormParameterPoker("EmployeeName", TypeCode.String, "EmployeeLabel"); FormParameter clonedParam = (FormParameter)FormParam.DoClone(); Assert.AreEqual("EmployeeName", clonedParam.Name, "FormParameterCloneName"); Assert.AreEqual(TypeCode.String, clonedParam.Type, "FormParameterCloneType"); Assert.AreEqual("EmployeeLabel", clonedParam.FormField, "FormParameterCloneFormField"); }
public void FormParameter_Clone () { FormParameterPoker FormParam = new FormParameterPoker ("EmployeeName", TypeCode.String, "EmployeeLabel"); FormParameter clonedParam = (FormParameter) FormParam.DoClone (); Assert.AreEqual ("EmployeeName", clonedParam.Name, "FormParameterCloneName"); Assert.AreEqual (TypeCode.String, clonedParam.Type, "FormParameterCloneType"); Assert.AreEqual ("EmployeeLabel", clonedParam.FormField, "FormParameterCloneFormField"); }