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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -