public void Angle() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {Angle = 0.10}; Assert.AreEqual(0.10, brush.Angle, 0.000001); brush.Delete(); }
public void AspectRatio() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {AspectRatio = 2.0}; Assert.AreEqual(2.0, brush.AspectRatio, 0.000001); brush.Delete(); }
public void GetInfo() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName); var info = brush.Info; Assert.AreEqual(brushName, brush.Name); // Assert.AreEqual(0, width); // Fix me: insert more Asserts here! brush.Delete(); }
public void New() { string brushName = "Gimp#Brush"; int count = new BrushList(null).Count; #if false var brush = new Brush(brushName); Assert.AreEqual(brushName, brush.Name); Assert.AreEqual(count + 1, new BrushList(null).Count); brush.Delete(); Assert.AreEqual(count, new BrushList(null).Count); #endif }
public Brush(Brush brush) : base(gimp_brush_duplicate(brush.Name)) { }
public void InvalidSpacing() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName); try { brush.Spacing = -1; } finally { brush.Delete(); } }
public void Hardness() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {Hardness = 0.13}; Assert.AreEqual(0.13, brush.Hardness, 0.000001); brush.Delete(); }
public void Spikes() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {Spikes = 13}; Assert.AreEqual(13, brush.Spikes); brush.Delete(); }
public void Shape() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {Shape = BrushGeneratedShape.Circle}; Assert.AreEqual(BrushGeneratedShape.Circle, brush.Shape); brush.Delete(); }
public void Rename() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName); string newName = "Gimp#Brush2"; string name = brush.Rename(newName); Assert.AreEqual(newName, name); Assert.AreEqual(newName, brush.Name); brush.Delete(); }
public void Radius() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName) {Radius = 13.0}; Assert.AreEqual(13.0, brush.Radius, 0.000001); brush.Delete(); }
public void IsGenerated() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName); Assert.IsTrue(brush.Generated); brush.Delete(); }
public void IsEditable() { string brushName = "Gimp#Brush"; var brush = new Brush(brushName); Assert.IsTrue(brush.Editable); brush.Delete(); }