Integrates unittests for lts/services/s almost successfull into final validation phase
This commit is contained in:
46 files changed
+307
-108
No files matched your search
@@ -23,15 +23,15 @@ TEST(ItemTest, HeaderCompilesAndLinks)
|
||||
TEST(ItemTest, CanInstantiateItem)
|
||||
{
|
||||
// Basic instantiation test
|
||||
Item item("TestItem", "test-id");
|
||||
EXPECT_EQ(item.getName(), "TestItem");
|
||||
EXPECT_EQ(item.getIdentifier(), "test-id");
|
||||
Item item(QStringLiteral("TestItem"), QStringLiteral("test-id"));
|
||||
EXPECT_EQ(item.getName(), QStringLiteral("TestItem"));
|
||||
EXPECT_EQ(item.getIdentifier(), QStringLiteral("test-id"));
|
||||
}
|
||||
|
||||
TEST(ItemTest, ItemHasValidState)
|
||||
{
|
||||
Item parent("Parent");
|
||||
Item child("Child");
|
||||
Item parent(QStringLiteral("Parent"));
|
||||
Item child(QStringLiteral("Child"));
|
||||
|
||||
// Test parent-child relationship
|
||||
child.setParent(&parent);
|
||||
|
||||
Reference in new issue
Block a user