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); }
public void Constructor_should_construct_instance_properly() { //Arrange var fieldType = FieldType.Email; //Act var attribute = new TransformValueAttribute(fieldType); //Arrange attribute.FieldType.Should().Be(fieldType); }