public void TrySetCompleted_CallsOnCompleted()
        {
            // Arrange
            var op = new AsyncResultOverrides();

            // Act
            op.TrySetCompleted();

            // Assert
            Assert.True(op.OnCompletedCalled);
            Assert.True(op.OnStatusChangedCalled);
        }
Exemple #2
0
        public void Dispose_CallsDispose()
        {
            // Arrange
            var op = new AsyncResultOverrides();

            op.TrySetCompleted();

            // Act
            op.Dispose();

            // Assert
            Assert.True(op.DisposeCalled);
        }