示例#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();
        }
示例#2
0
        public void SetUp()
        {
            _sut = Substitute.ForPartsOf <BrowserStackTunnel>();

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