     mock_method.restore_original_method() for mock_method in @_list
 
 
-
 #
 # common functions
 #

      expectations.create_expectation()



class MockObject

  # empty



class Expectation

    @install_expects_method(@_mock_methods)
    @create_mock_objects()
    @create_empty_mock_methods_list()

  run_test_function: ->
    @_test_function.apply(null, @_mock_objects)

  verify_expectations: ->
    errors = @_mock_methods.find_errors()
    fail( errors.join("\n") + "\n" ) if errors.length > 0

  cleanup: ->
    @_mock_methods.restore_original_methods()
    @uninstall_expects_method()

  check_mock_usage: (args) ->
    switch args.length
      when 1
