mocking - Is it possible to mock classes that only expose Factory constructors? -
recently had need mock timer class in test. turned out issue because timer doesnt have public default constructors because uses factory constructors. possible mock classes dont have public default constructor?
every dart class has implicit interface. can implement timer
, mock class way.
Comments
Post a Comment