From fb7c649f0a130869b596bf4ab88dc1cc17c52eb1 Mon Sep 17 00:00:00 2001 From: Vlad Pavel Date: Wed, 17 Jan 2024 16:59:06 +0200 Subject: [PATCH] fix two failed tests --- .version | 2 +- CHANGELOG.md | 3 +++ .../RevitIntegrationTests/Application/FamilyDocumentTests.cs | 2 +- test/Libraries/RevitIntegrationTests/ElementBindingTests.cs | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.version b/.version index 7ceb04048..b1d7abc0d 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.6.1 \ No newline at end of file +0.6.2 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5535e0da1..429b5ae8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.6.2 +* Fix two failed tests + ## 0.6.1 * Target for Revit 2026 * Update GregRevitAuth to 2.0.8776.26607 diff --git a/test/Libraries/RevitIntegrationTests/Application/FamilyDocumentTests.cs b/test/Libraries/RevitIntegrationTests/Application/FamilyDocumentTests.cs index da515ed5f..d7797efb4 100644 --- a/test/Libraries/RevitIntegrationTests/Application/FamilyDocumentTests.cs +++ b/test/Libraries/RevitIntegrationTests/Application/FamilyDocumentTests.cs @@ -46,7 +46,7 @@ public void CanGetFamilyDocumentParameters() string testPath = Path.GetFullPath(samplePath); var expectedOutputType = typeof(Revit.Elements.FamilyParameter); - var expectedParameterCount = 17; + var expectedParameterCount = 19; // Act ViewModel.OpenCommand.Execute(testPath); diff --git a/test/Libraries/RevitIntegrationTests/ElementBindingTests.cs b/test/Libraries/RevitIntegrationTests/ElementBindingTests.cs index cdcfca3bf..cc0f4ed0b 100644 --- a/test/Libraries/RevitIntegrationTests/ElementBindingTests.cs +++ b/test/Libraries/RevitIntegrationTests/ElementBindingTests.cs @@ -571,7 +571,7 @@ public void Rebinding_ExceptionIsThrown() //Check the number of the family instances var instances = TestUtils.GetAllFamilyInstances(); - Assert.AreEqual(8, instances.Count); + Assert.AreEqual(4, instances.Count); var model = ViewModel.Model; var selNodes = model.CurrentWorkspace.Nodes.Where(x => string.Equals(x.GUID.ToString(), "2411be0e-abff-4d32-804c-5e5025a92257")); @@ -593,7 +593,7 @@ public void Rebinding_ExceptionIsThrown() //Check the number of family instances instances = TestUtils.GetAllFamilyInstances(); - Assert.AreEqual(8, instances.Count); + Assert.AreEqual(4, instances.Count); } [Test]