public void TestConstructor() { string err = string.Empty; string modStr = string.Empty; Arrl_Sect sect = new Arrl_Sect("NT", aEnums); Assert.IsTrue(sect.Validate(out err, out modStr)); Assert.IsNull(err); Assert.IsNull(modStr); }
public void TestConstructor1() { string err = string.Empty; string modStr = string.Empty; Arrl_Sect sect = new Arrl_Sect("ABCD", aEnums); Assert.IsFalse(sect.Validate(out err, out modStr)); Assert.AreEqual("\tThis QSO Field is of type enumeration. The value 'ABCD' was not found in enumeration.", err); Assert.IsNull(modStr); }