import { PreProgrammedMethod } from "https://deno.land/x/rhum@v2.1.0/src/pre_programmed_method.ts";
Class that allows to be a "stand-in" for a method. For example, when used in a mock object, the mock object can replace methods with pre-programmed methods (using this class), and have a system under test use the pre-programmed methods.
Constructors
new
PreProgrammedMethod(methodName: MethodOf<OriginalObject>)Properties
readonly
return: ReturnValueMethods
willReturn(returnValue: ReturnValue): void
Pre-program this method to return the given value.