示例#1
0
 private static void AssertErrors(GroupBox groupBox, string hasError, IEnumerable <string> errors)
 {
     Assert.AreEqual(hasError, groupBox.GetByIndex <Label>(1).Text);
     CollectionAssert.AreEqual(errors, groupBox.GetByText <GroupBox>("Errors").GetErrors());
     CollectionAssert.AreEqual(errors, groupBox.GetByText <GroupBox>("Node").GetErrors());
 }