My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
New issue | Search
for
| Advanced search | Search tips
Issue 21: Verify 'from' instance
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  fluxmunki
Closed:  Nov 2008
Type-Story
Priority-Medium


Sign in to add a comment
 
Reported by fluxmunki, Oct 30, 2008
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
Comment 1 by fluxmunki, Oct 30, 2008
Scenario 5: VerifyAllMappings also verifies from instance
Given that the from instance has mapped, unassigned properties
When  VerifyAllMappings is called
Then  An exception should be thrown 

Comment 2 by fluxmunki, Oct 30, 2008
Scenario 6: struct type property not set
Given that the from type has a struct 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



Comment 3 by fluxmunki, Nov 07, 2008
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code