public void Dispose_ShouldKillProcessWhenInstantiated() { // Arrange _sut.Process = Substitute.For <IProcess>(); _sut.When(x => x.Kill()).DoNotCallBase(); // Act _sut.Dispose(); // Assert _sut.Received(1).Kill(); }
public void SetUp() { _sut = Substitute.ForPartsOf <BrowserStackTunnel>(); _sut.When(x => x.DownloadBinary()).DoNotCallBase(); }