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);
        }
        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);
        }
        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);
        }