test/Shared/FunctionalTests/ProductivityApi/DisposeTests.cs
/// <summary>
/// Asserts that an operation on a disposed context throws.
/// </summary>
/// <param name="test"> The test to run on the context. </param>
Asserts that an operation on a disposed context throws.
Asserts that an operation on a disposed context throws .
private void ThrowsWithDisposedContext(Action<SimpleModelContext> test)
        {
            var context = CreateDisposedContext();
            Assert.Throws<InvalidOperationException>(() => test(context)).ValidateMessage("DbContext_Disposed");
        }
private void ThrowsWithDisposedContext ( Action < SimpleModelContext > test ) { var context = CreateDisposedContext ( ) ; Assert . Throws < InvalidOperationException > ( ( ) => test ( context ) ) . ValidateMessage ( " " ) ; }
Asserts that an operation on a disposed context throws.
Asserts that an operation on a disposed context throws .
test
Action<SimpleModelContext>
The test to run on the context.
The test to run on the context .