// [Test] public void CountNone() { // Test for non-existing brushes var brushes = new BrushList("nonsense"); Assert.AreEqual(0, brushes.Count); }
public void IsNotEditable() { var brushes = new BrushList("Pepper"); Assert.AreEqual(1, brushes.Count); brushes.ForEach(brush => Assert.IsFalse(brush.Editable)); }
// [Test] public void ForEach() { var brushes = new BrushList(null); int count = 0; brushes.ForEach(brush => count++); Assert.AreEqual(brushes.Count, count); }
// [Test] public void GetEnumerator() { var brushes = new BrushList(null); int count = 0; foreach (Brush brush in brushes) { Assert.IsNotNull(brush.Name); count++; } Assert.AreEqual(brushes.Count, count); }
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 void CountAll() { var brushes = new BrushList(null); Assert.Greater(brushes.Count, 0); }