Beispiel #1
0
        // [Test]
        public void CountNone()
        {
            // Test for non-existing brushes
            var brushes = new BrushList("nonsense");

            Assert.AreEqual(0, brushes.Count);
        }
Beispiel #2
0
        public void IsNotEditable()
        {
            var brushes = new BrushList("Pepper");

            Assert.AreEqual(1, brushes.Count);
            brushes.ForEach(brush => Assert.IsFalse(brush.Editable));
        }
Beispiel #3
0
        // [Test]
        public void ForEach()
        {
            var brushes = new BrushList(null);
            int count   = 0;

            brushes.ForEach(brush => count++);
            Assert.AreEqual(brushes.Count, count);
        }
Beispiel #4
0
        // [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);
        }
Beispiel #5
0
        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
        }
Beispiel #6
0
        public void CountAll()
        {
            var brushes = new BrushList(null);

            Assert.Greater(brushes.Count, 0);
        }