Closed Daniel15 closed 7 years ago
Actually I guess there's no benefit in mocking it, I can just use the real JsEngineSwitcher
and before each test I can clear out its EngineFactories
then register some mock engines. Not ideal, but the constructor isn't public so I can't access it :(
I wanted to write a unit test that tests some code that uses
JsEngineSwitcher
, but it's not possible to mock this class as it'ssealed
and there's no interface. Could you please make it extend anIJsEngineSwitcher
interface so that code that uses it can be unit tested?
@Daniel15 This feature was implemented in version 3.0.0 Alpha 2.
I wanted to write a unit test that tests some code that uses
JsEngineSwitcher
, but it's not possible to mock this class as it'ssealed
and there's no interface. Could you please make it extend anIJsEngineSwitcher
interface so that code that uses it can be unit tested?