Skip to content

Commit

Permalink
Merge pull request #1601 from Randy-Ma/Revit2017
Browse files Browse the repository at this point in the history
Fix failing test cases
  • Loading branch information
Randy-Ma authored Mar 6, 2017
2 parents 6022fa5 + 53b3882 commit e2685f6
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 40 deletions.
6 changes: 4 additions & 2 deletions test/Libraries/RevitIntegrationTests/LevelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Linq;
using Autodesk.Revit.DB;
using Dynamo.Nodes;
using Dynamo.Graph.Nodes;
using Dynamo.Tests;

using NUnit.Framework;
Expand Down Expand Up @@ -37,8 +38,9 @@ public void Level()
Assert.AreEqual(levelColl.ToElements().Count(), 6);

//change the number and run again
var numNode = ViewModel.Model.CurrentWorkspace.FirstNodeFromWorkspace<DoubleInput>();
numNode.Value = "0..20..2";
var cbnNode = ViewModel.Model.CurrentWorkspace.FirstNodeFromWorkspace<CodeBlockNodeModel>();
var cmd = new Dynamo.Models.DynamoModel.UpdateModelValueCommand(Guid.Empty, cbnNode.GUID, "Code", "0..20..2");
Model.ExecuteCommand(cmd);

RunCurrentModel();

Expand Down
2 changes: 1 addition & 1 deletion test/Libraries/RevitIntegrationTests/RoomTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void RoomProperties()


var area = GetPreviewValue("cfe548b0-42bf-4480-b561-0ace4fc4d68d");
Assert.AreEqual(12.87, area);
Assert.AreEqual(12.87, (double)area, 1e-9);

var height = GetPreviewValue("636279f6-d676-4fe8-9d57-fa2c8bc28af6");
Assert.AreEqual(4000, height);
Expand Down
Loading

0 comments on commit e2685f6

Please sign in to comment.