Skip to content
Snippets Groups Projects

ENH: Add test for extended extern C interface

Merged Florian Spreckelsen requested to merge f-extended-c into f-files
All threads resolved!
+ 3
0
@@ -304,6 +304,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
Entity rt;
rt.SetRole("RecordType");
rt.SetName("TestRT");
rt.SetDescription("Some description");
rt.AppendProperty(prop_rt);
auto rt_insertion(connection->CreateTransaction());
@@ -336,6 +337,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
const auto &retrieved_rt = rt_retrieve_results.GetEntity();
EXPECT_EQ(inserted_rt.GetId(), retrieved_rt.GetId());
EXPECT_EQ(rt.GetName(), retrieved_rt.GetName());
EXPECT_EQ(rt.GetDescription(), retrieved_rt.GetDescription());
EXPECT_EQ(retrieved_rt.GetProperties().Size(), 1);
const auto &retrieved_prop_rt = retrieved_rt.GetProperties().At(0);
@@ -397,6 +399,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
const auto &retrieved_parent_rec = retrieved_rec.GetParents().At(0);
EXPECT_EQ(retrieved_parent_rec.GetName(), rt.GetName());
EXPECT_EQ(retrieved_parent_rec.GetId(), inserted_rt.GetId());
EXPECT_EQ(retrieved_parent_rec.GetDescription(), rt.GetDescription());
const auto &retrieved_prop_rec = retrieved_rec.GetProperties().At(0);
EXPECT_EQ(retrieved_prop_rec.GetName(), prop_ent.GetName());
Loading