public static void ValidateTargetField(TargetField targetField, bool isDirty, string sourceClassFullName, string sourceFieldName, EnumTargetControlType targetControlType, string targetFieldName) { Assert.AreEqual(isDirty, targetField.IsDirty); Assert.AreEqual(sourceClassFullName, targetField.SourceClassFullName); Assert.AreEqual(sourceFieldName, targetField.SourceFieldName); Assert.AreEqual(targetControlType, targetField.TargetControlType); Assert.AreEqual(targetFieldName, targetField.TargetFieldName); }
public EnumTargetControlType GetTargetControlType(string sourceClassFullName) { EnumTargetControlType returnValue = EnumTargetControlType.Unknown; switch (sourceClassFullName) { case "System.Web.UI.WebControls.HyperLink": returnValue = EnumTargetControlType.Link; break; case "System.Web.UI.WebControls.TextBox": returnValue = EnumTargetControlType.TextBox; break; case "System.Web.UI.WebControls.Label": returnValue = EnumTargetControlType.Label; break; } return(returnValue); }
public static void ValidateTargetField(TargetField targetField, bool isDirty, string sourceClassFullName, string sourceFieldName, EnumTargetControlType targetControlType, string targetFieldName) { Assert.AreEqual(isDirty, targetField.IsDirty); Assert.AreEqual(sourceClassFullName, targetField.SourceClassFullName); Assert.AreEqual(sourceFieldName, targetField.SourceFieldName); Assert.AreEqual(targetControlType, targetField.TargetControlType); Assert.AreEqual(targetFieldName, targetField.TargetFieldName); }