public void A() { var scale = ScaleTransform.Create(CallSyntax.Parse("scale(800,600)")); Assert.Equal(800, scale.Width); Assert.Equal(600, scale.Height); Assert.Equal("scale(800,600,box)", scale.Canonicalize()); }
public void B() { var scale = new ScaleTransform(800, 600, InterpolaterMode.Lanczos3); Assert.Equal("scale(800,600,lanczos3)", scale.Canonicalize()); scale = ScaleTransform.Create(CallSyntax.Parse(scale.Canonicalize())); Assert.Equal(800, scale.Width); Assert.Equal(600, scale.Height); Assert.Equal(InterpolaterMode.Lanczos3, scale.Mode); }