コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }