import { TestDoubleBuilder } from "https://deno.land/x/rhum@v2.2.0/src/test_double_builder.ts";
This class contains the methods to help build most of what a test double needs.
Constructors
Construct an object of this class.
Properties
A list of args the class constructor takes. This is used to instantiate the original with args (if needed).
The constructor function of the objet to create a test double out of.
Methods
Add an original object's method to a a test double without doing anything else.
Add an original object's properties to the test double.
Add an original object's property to the test double.
Get all functions from the original so they can be added to the test double.
Get all properties from the original so they can be added to the test double.
Before constructing the fake object, track any constructor function args that need to be passed in when constructing the fake object.