Esempio n. 1
0
        public void Dispose_ShouldKillProcessWhenInstantiated()
        {
            // Arrange
            _sut.Process = Substitute.For <IProcess>();
            _sut.When(x => x.Kill()).DoNotCallBase();

            // Act
            _sut.Dispose();

            // Assert
            _sut.Received(1).Kill();
        }
Esempio n. 2
0
        public void SetUp()
        {
            _sut = Substitute.ForPartsOf <BrowserStackTunnel>();

            _sut.When(x => x.DownloadBinary()).DoNotCallBase();
        }