public void CannotCommitAfterSettingRollbackOnly()
        {
            if (Environment.OSVersion.Version.Major < 6)
            {
                Assert.Ignore("TxF not supported");
                return;
            }

            using (var tx = new FileTransaction())
            {
                tx.Begin();
                tx.SetRollbackOnly();
                Assert.Throws(typeof(TransactionException), tx.Commit,
                              "Should not be able to commit after rollback is set.");
            }
        }
		public void CannotCommitAfterSettingRollbackOnly()
		{
            if (Environment.OSVersion.Version.Major < 6)
            {
                Assert.Ignore("TxF not supported");
                return;
            }

			using (var tx = new FileTransaction())
			{
				tx.Begin();
				tx.SetRollbackOnly();
				Assert.Throws(typeof(TransactionException), tx.Commit,
							  "Should not be able to commit after rollback is set.");
			}
		}