Skip to content

Commit

Permalink
DYN-7392 Forge Units reference (DynamoDS#15512)
Browse files Browse the repository at this point in the history
Co-authored-by: pinzart90 <[email protected]>
  • Loading branch information
QilongTang and pinzart90 authored Nov 6, 2024
1 parent dfe1658 commit 3052dca
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/DynamoCore/DynamoCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<PackageReference Include="Lucene.Net" Version="4.8.0-beta00016" />
<PackageReference Include="Lucene.Net.Analysis.Common" Version="4.8.0-beta00016" />
<PackageReference Include="Lucene.Net.QueryParser" Version="4.8.0-beta00016" />
<PackageReference Include="DynamoVisualProgramming.Analytics" Version="4.2.1.4086" />
<PackageReference Include="DynamoVisualProgramming.Analytics" Version="4.2.1.6685" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Engine\GraphLayout\GraphLayout.csproj">
Expand Down
4 changes: 2 additions & 2 deletions src/Libraries/DynamoUnits/UnitsCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<ItemGroup>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
<PackageReference Include="System.Resources.Extensions" Version="5.0.0" />
<PackageReference Include="ForgeUnits.NET" Version="5.0.5" GeneratePathProperty="true">
<PackageReference Include="ForgeUnits.NET" Version="5.3.2" GeneratePathProperty="true">
<!--Skip copying the runtime dlls because we only need one (ForgeUnitsManaged.dll) which we copy in a task bellow.-->
<ExcludeAssets>runtime;build</ExcludeAssets>
</PackageReference>
<PackageReference Include="ForgeUnits.Schemas" Version="1.0.1" GeneratePathProperty="true" />
<PackageReference Include="ForgeUnits.Schemas" Version="1.0.4" GeneratePathProperty="true" />
</ItemGroup>
<ItemGroup>
<Content Include="DynamoUnits_DynamoCustomization.xml" />
Expand Down
2 changes: 1 addition & 1 deletion test/DynamoCoreTests/DynamoCoreTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" ExcludeAssets="none" />
<PackageReference Include="JunitXml.TestLogger" Version="3.0.124" />
<PackageReference Include="DynamoVisualProgramming.Analytics" Version="4.2.1.4086">
<PackageReference Include="DynamoVisualProgramming.Analytics" Version="4.2.1.6685">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion test/DynamoCoreTests/UnitsOfMeasureTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public void CanCreateForgeQuantity_FromFutureTypeId()
public void ForgeQuantityContainsMultipleUnits()
{
var quantityType = Quantity.ByTypeID("autodesk.unit.quantity:length-1.0.5");
Assert.GreaterOrEqual(16,quantityType.Units.Count());
Assert.GreaterOrEqual(17,quantityType.Units.Count());
}
[Test, Category("UnitTests")]
public void ForgeQuantityEquality()
Expand Down
2 changes: 1 addition & 1 deletion test/DynamoCoreWpfTests/UnitsUITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void ForgeUnitDropdownsLoadWithMalformedData()
//we've changed both index and name, so a new item is selected.
Assert.AreNotEqual(DynamoUnits.Quantity.ByTypeID("autodesk.unit.quantity:force-1.0.2"), node3.CachedValue.Data);
Assert.AreEqual(DynamoUnits.Symbol.ByTypeID("autodesk.unit.symbol:mm-1.0.1"), node4.CachedValue.Data);
Assert.AreEqual(DynamoUnits.Unit.ByTypeID("autodesk.unit.unit:millimeters-1.0.1"), node5.CachedValue.Data);
Assert.AreEqual(DynamoUnits.Unit.ByTypeID("autodesk.unit.unit:microarcseconds-1.0.1"), node5.CachedValue.Data);
Assert.AreEqual(DynamoUnits.Unit.ByTypeID("autodesk.unit.unit:meters-1.0.1"), node6.CachedValue.Data);
Assert.AreEqual(DynamoUnits.Unit.ByTypeID("autodesk.unit.unit:millimeters-1.0.1"), node7.CachedValue.Data);
Assert.AreEqual(3, node8.CachedValue.GetElements().Count());
Expand Down

0 comments on commit 3052dca

Please sign in to comment.