public void Changing_AffectsGeometry_Property_Causes_PlatformImpl_To_Be_Updated() { var target = new TestGeometry(); var platformImpl = target.PlatformImpl; target.Foo = true; Assert.NotSame(platformImpl, target.PlatformImpl); }
public void Setting_Transform_Causes_Changed_To_Be_Raised() { var target = new TestGeometry(); var raised = false; target.Changed += (s, e) => raised = true; target.Transform = new RotateTransform(45); Assert.True(raised); }
public void Changing_AffectsGeometry_Property_Causes_Changed_To_Be_Raised() { var target = new TestGeometry(); var raised = false; target.Changed += (s, e) => raised = true; target.Foo = true; Assert.True(raised); }
public void Transform_Produces_Transformed_PlatformImpl() { var target = new TestGeometry(); var rotate = new RotateTransform(45); Assert.False(target.PlatformImpl is ITransformedGeometryImpl); target.Transform = rotate; Assert.True(target.PlatformImpl is ITransformedGeometryImpl); rotate.Angle = 0; Assert.False(target.PlatformImpl is ITransformedGeometryImpl); }
public void Changing_Transform_Causes_Changed_To_Be_Raised() { var transform = new RotateTransform(45); var target = new TestGeometry { Transform = transform }; var raised = false; target.Changed += (s, e) => raised = true; transform.Angle = 90; Assert.True(raised); }