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

            using (var tx = new FileTransaction())
            {
                tx.Enlist(new R());
                tx.Begin();
                try
                {
                    try
                    {
                        tx.Rollback();
                        Assert.Fail("Tests is wrong or the transaction doesn't rollback resources.");
                    }
                    catch (Exception)
                    {
                    }

                    Assert.That(tx.Status == TransactionStatus.RolledBack);
                }
                catch (RollbackResourceException rex)
                {
                    // good.
                    Assert.That(rex.FailedResources[0].First, Is.InstanceOf(typeof(R)));
                }
            }
        }
		public void FailingResource_TxStillRolledBack()
		{
            if (Environment.OSVersion.Version.Major < 6)
            {
                Assert.Ignore("TxF not supported");
                return;
            }

			using (var tx = new FileTransaction())
			{
				tx.Enlist(new R());
				tx.Begin();
				try
				{
					try
					{
						tx.Rollback();
						Assert.Fail("Tests is wrong or the transaction doesn't rollback resources.");
					}
					catch (Exception)
					{
					}

					Assert.That(tx.Status == TransactionStatus.RolledBack);
				}
				catch (RollbackResourceException rex)
				{
					// good.
					Assert.That(rex.FailedResources[0].First, Is.InstanceOf(typeof (R)));
				}
			}
		}