public void AliasValueResolverAttribute_ConstructorWithTypeEmptyAlias_PropertiesinitialisedEmptyAlias()
        {
            var resolverType = typeof(ArchetypeValueResolver);

            _sut = new AliasValueResolverAttribute(resolverType, "");

            Assert.AreEqual(_sut.Alias, "");
            Assert.AreEqual(_sut.ResolverType, resolverType);
            Assert.AreEqual(_sut.TypeId, typeof(AliasValueResolverAttribute));
        }
        public void AliasValueResolverAttribute_ConstructorWithType_PropertiesInitialised()
        {
            var resolverType = typeof (ArchetypeValueResolver);

            _sut = new AliasValueResolverAttribute(resolverType);

            Assert.IsNullOrEmpty(_sut.Alias);
            Assert.AreEqual(_sut.ResolverType, resolverType);
            Assert.AreEqual(_sut.TypeId, typeof(AliasValueResolverAttribute));
        }
        public void AliasValueResolverAttribute_ConstructorWithTypeAndAlias_PropertiesInitialised()
        {
            var resolverType = typeof(ArchetypeValueResolver);
            var alias = "MyAlias";

            _sut = new AliasValueResolverAttribute(resolverType, alias);

            Assert.AreEqual(_sut.Alias, alias);
            Assert.AreEqual(_sut.ResolverType, resolverType);
            Assert.AreEqual(_sut.TypeId, typeof(AliasValueResolverAttribute));
        }
        public void AliasValueResolverAttribute_ConstructorWithNullTypeHasAlias_ThrowsException()
        {
            var alias = "MyAlias";

            _sut = new AliasValueResolverAttribute(null, alias);
        }