Fixing random update errors in new

issue: MatterHackers/MCCentral#4944
Combine operation buttons not updated
This commit is contained in:
Lars Brubaker 2019-01-28 16:03:47 -08:00
parent eeddffd48f
commit 4dd5d8cd99
4 changed files with 22 additions and 43 deletions

View file

@ -48,15 +48,6 @@ namespace MatterControl.Tests.MatterControl
[Test, Category("InteractiveScene")]
public void CombineTests()
{
AggContext.StaticData = new FileSystemStaticData(TestContext.CurrentContext.ResolveProjectPath(4, "StaticData"));
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
// Automation runner must do as much as program.cs to spin up platform
string platformFeaturesProvider = "MatterHackers.MatterControl.WindowsPlatformsFeatures, MatterControl.Winforms";
AppContext.Platform = AggContext.CreateInstanceFrom<INativePlatformFeatures>(platformFeaturesProvider);
AppContext.Platform.InitPluginFinder();
AppContext.Platform.ProcessCommandline();
// Combine has correct results
{
var root = new Object3D();
@ -560,7 +551,7 @@ namespace MatterControl.Tests.MatterControl
var curveAabb = curve.GetAxisAlignedBoundingBox();
root.Children.Add(curve);
var rootAabb = root.GetAxisAlignedBoundingBox();
Assert.IsTrue(rootAabb.Equals(new AxisAlignedBoundingBox(new Vector3(-17.5, -6.4, -10), new Vector3(17.5, 6.4, 10)), 1.0));
Assert.IsTrue(rootAabb.Equals(new AxisAlignedBoundingBox(new Vector3(-17.5, -6.4, -10), new Vector3(17.5, 11.9, 10)), 1.0));
}
}
}