TestDelegate action = resourceStreams.Commit;
Assert.That(action, Throws.InvalidOperationException.With.Message.EqualTo("The unit of work is read-only."));
This triggers NUnit2044:The type of the actual argument must be a delegate.
In this case, the type already is a delegate, as resourceStreams.Commit is a method defined as public void Commit().