public void ConfigDataTypeAttribute_NotOverrideEquals_RaiseArgumentException() { // arrange Type type = typeof( TestConfigDataTypeNotOverrideEquals ); ConfigDataTypeAttribute cda; // act cda = new ConfigDataTypeAttribute( type ); // assert }
public void ConfigDataTypeAttribute_NotSerializable_RaiseArgumentException() { // arrange Type type = typeof( TestConfigDataTypeNotSerializable ); ConfigDataTypeAttribute cda; // act cda = new ConfigDataTypeAttribute( type ); // assert }
public void ConfigDataTypeAttribute_TypeNull_RaiseArgumentNullException() { // arrange Type type = null; ConfigDataTypeAttribute cda; // act cda = new ConfigDataTypeAttribute( type ); // assert }
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 ); }