Ejemplo n.º 1
0
        public void Constructor_should_set_fieldType_to_auto_when_it_is_not_passed_in()
        {
            //Arrange
            var expectedFieldType = FieldType.Auto;

            //Act
            var attribute = new TransformValueAttribute();

            //Assert
            attribute.FieldType.Should().Be(expectedFieldType);
        }
Ejemplo n.º 2
0
        public void Constructor_should_construct_instance_properly()
        {
            //Arrange
            var fieldType = FieldType.Email;

            //Act
            var attribute = new TransformValueAttribute(fieldType);

            //Arrange
            attribute.FieldType.Should().Be(fieldType);
        }