Added test case and setting Test configuration
This commit is contained in:
1 parent
f815271486
commit
a86f9b5bac
48 files changed
+423
-168
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