From 68f65607a961fc19aa7a3e711621f0765771695b Mon Sep 17 00:00:00 2001 From: samatrhea Date: Fri, 17 Mar 2023 09:08:42 +0100 Subject: [PATCH] [Fix] broken unit tests --- .../Poco/BinaryRelationshipTestFixture.cs | 12 ++++++------ .../Poco/BinaryRelationshipTestFixture.cs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CDP4Common.NetCore.Tests/Poco/BinaryRelationshipTestFixture.cs b/CDP4Common.NetCore.Tests/Poco/BinaryRelationshipTestFixture.cs index a5cc6802c..193649711 100644 --- a/CDP4Common.NetCore.Tests/Poco/BinaryRelationshipTestFixture.cs +++ b/CDP4Common.NetCore.Tests/Poco/BinaryRelationshipTestFixture.cs @@ -93,18 +93,18 @@ public void VerifyThatAppliedRulesGetterWorks() iteration.Relationship.Add(relationship); // test - Assert.IsEmpty(relationship.AppliedBinaryRelationshipRules); + Assert.IsEmpty(relationship.QueryAppliedBinaryRelationshipRules()); relationship.Category.Add(cat3); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule3)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule3)); relationship.Category.Add(cat1); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule3)); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule1)); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule11)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule3)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule1)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule11)); relationship.Category = null; - Assert.IsEmpty(relationship.AppliedBinaryRelationshipRules); + Assert.IsEmpty(relationship.QueryAppliedBinaryRelationshipRules()); } } } \ No newline at end of file diff --git a/CDP4Common.Tests/Poco/BinaryRelationshipTestFixture.cs b/CDP4Common.Tests/Poco/BinaryRelationshipTestFixture.cs index cd21139c3..0407383fa 100644 --- a/CDP4Common.Tests/Poco/BinaryRelationshipTestFixture.cs +++ b/CDP4Common.Tests/Poco/BinaryRelationshipTestFixture.cs @@ -93,18 +93,18 @@ public void VerifyThatAppliedRulesGetterWorks() iteration.Relationship.Add(relationship); // test - Assert.IsEmpty(relationship.AppliedBinaryRelationshipRules); + Assert.IsEmpty(relationship.QueryAppliedBinaryRelationshipRules()); relationship.Category.Add(cat3); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule3)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule3)); relationship.Category.Add(cat1); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule3)); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule1)); - Assert.IsTrue(relationship.AppliedBinaryRelationshipRules.Contains(rule11)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule3)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule1)); + Assert.IsTrue(relationship.QueryAppliedBinaryRelationshipRules().Contains(rule11)); relationship.Category = null; - Assert.IsEmpty(relationship.AppliedBinaryRelationshipRules); + Assert.IsEmpty(relationship.QueryAppliedBinaryRelationshipRules()); } } } \ No newline at end of file