Mocking library for TypeScript
Fixed https://github.com/NagRock/ts-mockito/issues/9
Now code from getters and setters is not executed. Functionality of stubbing getter or setter is not added in this release. It's just fixing code execution issue.
Now we can reset mocks using reset(mock);
function.
Example:
let mockedFoo:Foo = mock(Foo);
let foo:Foo = instance(mockedFoo);
foo.getBar();
verify(mockedFoo.getBar()).once(); // getBar has been called once
reset(mockedFoo); // reset mock call counter
verify(mockedFoo.getBar()).never(); // getBar has not been called after reset