public void AddDiagnosting_NullTransaction_ThrowsException() { // arrange DbTransaction transaction = null !; // act var exception = Assert.Throws <ArgumentNullException>(() => transaction.AddDiagnosting()); // assert Assert.Equal("transaction", exception.ParamName); }