Update existing tests to work with ValaUnit

This commit is contained in:
Michael Gratton 2020-05-09 16:04:22 +10:00 committed by Michael James Gratton
parent 6b1bad28b9
commit 0ae633d88f
53 changed files with 773 additions and 756 deletions

View file

@ -29,9 +29,9 @@ class Geary.Imap.FetchCommandTest : TestCase {
new Gee.LinkedList<FetchDataSpecifier>();
data_items.add(FetchDataSpecifier.UID);
assert_string(
"---- fetch 1 uid",
new FetchCommand(this.msg_set, data_items, null).to_string()
assert_equal(
new FetchCommand(this.msg_set, data_items, null).to_string(),
"---- fetch 1 uid"
);
}
@ -44,9 +44,9 @@ class Geary.Imap.FetchCommandTest : TestCase {
)
);
assert_string(
"---- fetch 1 body[text]",
new FetchCommand(this.msg_set, null, body_items).to_string()
assert_equal(
new FetchCommand(this.msg_set, null, body_items).to_string(),
"---- fetch 1 body[text]"
);
}
@ -56,9 +56,9 @@ class Geary.Imap.FetchCommandTest : TestCase {
data_items.add(FetchDataSpecifier.UID);
data_items.add(FetchDataSpecifier.BODY);
assert_string(
"---- fetch 1 (uid body)",
new FetchCommand(this.msg_set, data_items, null).to_string()
assert_equal(
new FetchCommand(this.msg_set, data_items, null).to_string(),
"---- fetch 1 (uid body)"
);
}
@ -76,9 +76,9 @@ class Geary.Imap.FetchCommandTest : TestCase {
)
);
assert_string(
"---- fetch 1 (body[header] body[text])",
new FetchCommand(this.msg_set, null, body_items).to_string()
assert_equal(
new FetchCommand(this.msg_set, null, body_items).to_string(),
"---- fetch 1 (body[header] body[text])"
);
}
@ -101,9 +101,9 @@ class Geary.Imap.FetchCommandTest : TestCase {
)
);
assert_string(
"---- fetch 1 (uid flags body[header] body[text])",
new FetchCommand(this.msg_set, data_items, body_items).to_string()
assert_equal(
new FetchCommand(this.msg_set, data_items, body_items).to_string(),
"---- fetch 1 (uid flags body[header] body[text])"
);
}