|
|
Narrative:
As a Developer
I want to be informed if the provided from instance will not be sufficient
to verify the mappings
So that I can fix the test to ensure all mappings are fully verified
Acceptance Criteria:
Scenario 1: Value type property not set
Given that the from type has a value type propery (e.g. int)
And a mapping is specified for this property
And the from instance does not assign a value to this property
When VerifyFromInstance is called
Then An exception should be thrown
And the exception should contain the property name that was not assigned
Scenario 2: Reference type property not set
Given that the from type has a reference type propery (e.g. an instance of
another class)
And a mapping is specified for this property
And the from instance does not assign a value to this property
When VerifyFromInstance is called
Then An exception should be thrown
And the exception should contain the property name that was not assigned
Scenario 2: Reference type property not set
Given that the from type has a reference type propery (e.g. an instance of
another class)
And a mapping is specified for this property
And the from instance does not assign a value to this property
When VerifyFromInstance is called
Then An exception should be thrown
And the exception should contain the property name that was not assigned
Scenario 3: string type property not set
Given that the from type has a string propery
And a mapping is specified for this property
And the from instance does not assign a value to this property
When VerifyFromInstance is called
Then An exception should be thrown
And the exception should contain the property name that was not assigned
Scenario 4: Multiple properties not set
Given that the from type has multiple properties
And a mapping is specified for multiple properties
And the from instance does not assign a value to these properties
When VerifyFromInstance is called
Then An exception should be thrown
And the exception should contain the names of all the properties that
were not assigned
|