Skip to content
ChrisEdwards edited this page Sep 8, 2010 · 7 revisions

This page contains a list of tests organized by usage that need implementing.

  • Using a custom builder

    • as an alias for an instance
      • should fail if it is configured after setting it to an alias (since the configuration will be ignored)
      • should allow the alias to be changed to a different instance.
      • test using AliasFor() and UsePreBuiltResult()
    • to build an empty class
      • should return an instance of the builder's target type
      • should return an instance whose properties all have default values
    • to set a value property
      • should return an instance with the property having the specified value
    • to set a reference property
      • by passing in the specified instance as the property's value
        • should return an instance having the reference property set to the specified instance
      • by passing in a builder to use to create the propery's value
        • should invoke the property's builder to get its value
        • should return an instance having the property set to the result of the property's builder
        • should fail if the builder's target type does not match the property's type
    • to set a list property
      • by passing in a list builder to build the list for the property
        • should invoke the list builder to get the property's value
        • should return an instance having the property set to the result of the list builder
        • should fail if the builder passed in does not build a list
        • should fail if the property specified is not a list property
      • by passing an instance of a list to use for the property's value
        • the build result should have its list property set to the specified instance
        • should fail if the property specified is not a list property
      • by adding an item to the list
        • the build result's list property should contain the item
      • by adding a builder to build an item for the list
        • Should include an item built by the builder in the built list property
      • by adding a list of items to the list
        • should contain all the added list items in the built list property
        • should fail if the property specified is not a list property
      • by adding a list of builders to use to build items for the list
        • Should invoke each builder
        • Should include the build result of each builder in the built list property
        • should fail if the property specified is not a list property
      • by doing nothing
        • Should create an empty list
    • to perform custom processing on the build result before returning it
      • should execute the custom processing before returning the build result.
    • to get a property's value before building the build result
      • should retrieve the specified value for the property
    • to get the builder for a property before building the result
      • should retrieve the builder for the specified property
      • should fail if no builder exists for the specified property
    • to get the list builder for a list property before building the result
      • should retrieve the list builder for the specified property
      • should fail if no builder exists for the specified property
      • should fail if the property specified is not a list property
    • Casting a builder to a subclass
    • Generating an id for an entity

    Using a dynamic builder as an alias for an instance should fail if it is configured after setting it to an alias (since the configuration will be ignored) should allow the alias to be changed to a different instance. to build an empty class should return an instance of the builder's target type should return an instance whose properties all have default values to set a value property should return an instance with the property having the specified value to set a reference property by passing in the specified instance as the property's value should return an instance having the reference property set to the specified instance by passing in a builder to use to create the propery's value should invoke the property's builder to get its value should return an instance having the property set to the result of the property's builder should fail if the builder's target type does not match the property's type to set a list property by passing in a list builder to build the list for the property should invoke the list builder to get the property's value should return an instance having the property set to the result of the list builder should fail if the builder passed in does not build a list should fail if the property specified is not a list property by passing an instance of a list to use for the property's value the build result should have its list property set to the specified instance by adding a specifed instance to the list by adding a builder to build an instance for the list Should include an item built by the builder in the built list property by adding a list of instances to the list by adding a list of builders to use to build items for the list Should invoke each builder Should include the build result of each builder in the built list property by doing nothing Should create an empty list

Clone this wiki locally