Fixing tests (YAY TESTS!)

This commit is contained in:
LarsBrubaker 2021-09-19 16:03:08 -07:00
parent d8b81066f7
commit cad6ea3dd6
3 changed files with 20 additions and 5 deletions

View file

@ -105,7 +105,7 @@ namespace MatterHackers.PolygonMesh.UnitTests
// set the cube width to the sheet value, but with a bad description (needs an equals to work)
cube1.Width = "A1";
cube1.Invalidate(InvalidateType.Properties);
Assert.AreEqual(0, cube1.Width.Value(cube1), "Should be 0 as the reference is bad");
Assert.AreEqual(CubeObject3D.MinEdgeSize, cube1.Width.Value(cube1), "Should be the minimum cube value as the reference is bad");
// now fix the reference
cube1.Width = "=A1";
cube1.Invalidate(InvalidateType.Properties);