Exemplo n.º 1
0
 public void ASSERT_VALUE(Client client, String column, String value, bool match)
 {
     String got = client.GetValue(column);
     if (match && value != got) {
         fail(string.Format("ASSERT_VALUE failed: expected {0} but got {1}", value, got));
     }
     else if (!match && value == got) {
         fail(string.Format("ASSERT_VALUE failed: not expected {0}", value));
     }
 }
Exemplo n.º 2
0
 public void ASSERT_ID(Client client)
 {
     String id = client.GetValue("id");
     if (string.IsNullOrEmpty(id)) {
         fail("ASSERT_ID failed: expected non empty string");
     }
 }
Exemplo n.º 3
0
 public void ASSERT_NON_EMPTY_VALUE(Client client, int ordinal)
 {
     if (string.IsNullOrEmpty(client.GetValue(ordinal))) {
         fail(string.Format("ASSERT_NON_EMPTY_VALUE failed: expected non empty string for ordinal {0}", ordinal));
     }
 }