Exemplo n.º 1
0
        public void ConfigDataTypeAttribute_NotOverrideEquals_RaiseArgumentException()
        {
            // arrange
            Type type = typeof( TestConfigDataTypeNotOverrideEquals );
            ConfigDataTypeAttribute cda;

            // act
            cda = new ConfigDataTypeAttribute( type );

            // assert
        }
Exemplo n.º 2
0
        public void ConfigDataTypeAttribute_NotSerializable_RaiseArgumentException()
        {
            // arrange
            Type type = typeof( TestConfigDataTypeNotSerializable );
            ConfigDataTypeAttribute cda;

            // act
            cda = new ConfigDataTypeAttribute( type );

            // assert
        }
Exemplo n.º 3
0
        public void ConfigDataTypeAttribute_TypeNull_RaiseArgumentNullException()
        {
            // arrange
            Type type = null;
            ConfigDataTypeAttribute cda;

            // act
            cda = new ConfigDataTypeAttribute( type );

            // assert
        }
Exemplo n.º 4
0
        public void ConfigDataTypeAttribute_ValidType_Success()
        {
            // arrange
            Type type = typeof(TestConfigDataType);
            ConfigDataTypeAttribute cda;

            // act
            cda = new ConfigDataTypeAttribute( type );

            // assert
            Assert.IsNotNull(cda);
            Assert.IsInstanceOf<ConfigDataTypeAttribute>( cda );
            Assert.AreEqual( type, cda.ConfigDataType );
        }