public void Visible_EditableChangeValue_GeometryShouldBeChanged() { var cube = new CubeVisual3D(); Assert.IsNotNull(((GeometryModel3D)cube.Content).Geometry); cube.BeginEdit(); cube.Visible = false; Assert.IsNotNull(((GeometryModel3D)cube.Content).Geometry); cube.EndEdit(); Assert.IsNull(((GeometryModel3D)cube.Content).Geometry); cube.BeginEdit(); cube.Visible = true; cube.EndEdit(); Assert.IsNotNull(((GeometryModel3D)cube.Content).Geometry); }
public void IEditable_ChangeTwoProperties_TesselateIsCalledOnce() { // Tessellate is called for default values in the constructor var cube = new CubeVisual3D(); cube.BeginEdit(); cube.SideLength = 2; cube.Fill = GradientBrushes.Rainbow; // Tessellate is called here cube.EndEdit(); // verified manually.... }