         fail(messages.MockUsage) unless is_function(args[1])
       else
         fail(messages.MockUsage)
-        
+
   parse_args: (args) ->
     switch args.length
       when 1

messages = require("../messages/messages.en.json")



class MockFunction
  
  @mock: (args...) ->
    mock = new MockFunction()
    mock.setup(args)

    fail(messages.ThrowsUsage) if arg_count != 1
    fail(messages.ThrowsUsedMoreThanOnce) if self._throws?
    fail(messages.ReturnsAndThrowsBothUsed) if self._returns?


class ExpectationList
