You've already forked linux-packaging-mono
Imported Upstream version 6.6.0.89
Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
This commit is contained in:
parent
cf815e07e0
commit
95fdb59ea6
@ -1094,6 +1094,26 @@ namespace MonoTests.System.Transactions
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[Test]
|
||||
public void DefaultIsolationLevel()
|
||||
{
|
||||
using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required))
|
||||
{
|
||||
Assert.AreEqual(IsolationLevel.Serializable, Transaction.Current.IsolationLevel);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ExplicitIsolationLevel()
|
||||
{
|
||||
TransactionOptions transactionOptions = new TransactionOptions();
|
||||
transactionOptions.IsolationLevel = IsolationLevel.ReadCommitted;
|
||||
using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required, transactionOptions))
|
||||
{
|
||||
Assert.AreEqual(IsolationLevel.ReadCommitted, Transaction.Current.IsolationLevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user