public void GridHtmlValueResolverAttribute_ConstructorWithNullTypeHasAlias_ThrowsException()
        {
            Type resolverType = null;
            var alias = "MyAlias";

            _sut = new GridHtmlValueResolverAttribute(resolverType, alias);
        }
        public void GridHtmlValueResolverAttribute_ConstructorWithType_PropertiesInitialised()
        {
            _sut = new GridHtmlValueResolverAttribute(_resolverType);

            Assert.IsNull(_sut.Alias);
            Assert.IsNull(_sut.Framework);
            Assert.AreEqual(_sut.HasFramework, false);
            Assert.AreEqual(_sut.ResolverType, _resolverType);
            Assert.AreEqual(_sut.TypeId, _attributeType);
        }
        public void GridHtmlValueResolverAttribute_ConstructorNullAliasNullFramework_PropertiesinitialisedEmptyAliasEmptyFramework()
        {
            string alias = "";
            string framework = "";

            _sut = new GridHtmlValueResolverAttribute(alias, framework);

            Assert.AreEqual(_sut.Alias, "");
            Assert.AreEqual(_sut.Framework, "");
            Assert.AreEqual(_sut.HasFramework, false);
            Assert.AreEqual(_sut.ResolverType, _resolverType);
            Assert.AreEqual(_sut.TypeId, _attributeType);
        }
        public void GridHtmlValueResolverAttribute_ConstructorWithAliasWithFramework_Propertiesinitialised()
        {
            string alias = "myAlias";
            string framework = "bootstrap3";

            _sut = new GridHtmlValueResolverAttribute(alias, framework);

            Assert.AreEqual(_sut.Alias, alias);
            Assert.AreEqual(_sut.Framework, framework);
            Assert.AreEqual(_sut.HasFramework, true);
            Assert.AreEqual(_sut.ResolverType, _resolverType);
            Assert.AreEqual(_sut.TypeId, _attributeType);
        }