Esempio n. 1
0
        public void If_value_is_null_image_should_be_null()
        {
            var testKindIcon = new TestTestKindIcon(tna => null, s => null);

            var image = testKindIcon.GetIcon();

            Assert.IsNull(image);
        }
Esempio n. 2
0
        public void If_value_is_null_image_should_be_null()
        {
            var testKindIcon = new TestTestKindIcon(tna => null, s => null);

            var image = testKindIcon.GetIcon();

            Assert.IsNull(image);
        }
Esempio n. 3
0
        public void Image_from_getNodeTypeImage_should_be_returned()
        {
            var bitmap = new Bitmap(1, 1);
            var testKindIcon = new TestTestKindIcon(tna => "", s => bitmap);

            var image = testKindIcon.GetIcon();

            Assert.AreEqual(bitmap, image);
        }
Esempio n. 4
0
        public void Image_from_getNodeTypeImage_should_be_returned()
        {
            var bitmap       = new Bitmap(1, 1);
            var testKindIcon = new TestTestKindIcon(tna => "", s => bitmap);

            var image = testKindIcon.GetIcon();

            Assert.AreEqual(bitmap, image);
        }
Esempio n. 5
0
        public void If_value_is_string_it_should_be_used_to_select_the_image()
        {
            const string nodetype = "nodeType";
            var testKindIcon = new TestTestKindIcon(tna => nodetype, s =>
            {
                Assert.AreEqual(nodetype, s);
                return null;
            });

            var image = testKindIcon.GetIcon();

            Assert.IsNull(image);
        }
Esempio n. 6
0
        public void If_value_is_string_it_should_be_used_to_select_the_image()
        {
            const string nodetype     = "nodeType";
            var          testKindIcon = new TestTestKindIcon(tna => nodetype, s =>
            {
                Assert.AreEqual(nodetype, s);
                return(null);
            });

            var image = testKindIcon.GetIcon();

            Assert.IsNull(image);
        }