public void NoCommit_MeansNoDirectory() { var directoryPath = "testing"; Assert.That(Directory.Exists(directoryPath), Is.False); using (ITransaction tx = new FileTransaction()) { Directory.Create(directoryPath); Assert.IsTrue(Directory.Exists(directoryPath)); tx.Dispose(); } Assert.That(!Directory.Exists(directoryPath)); }
public void NoCommit_MeansNoDirectory() { var directoryPath = "testing"; Assert.That(Directory.Exists(directoryPath), Is.False); using (ITransaction tx = new FileTransaction()) { Directory.Create(directoryPath); Assert.IsTrue(Directory.Exists(directoryPath)); tx.Dispose(); } Assert.That(!Directory.Exists(directoryPath)); }
public void NoCommit_MeansNoDirectory() { if (Environment.OSVersion.Version.Major < 6) { Assert.Ignore("TxF not supported"); return; } var directoryPath = "testing"; Assert.That(Directory.Exists(directoryPath), Is.False); using (var tx = new FileTransaction()) { (tx as IDirectoryAdapter).Create(directoryPath); tx.Dispose(); } Assert.That(!Directory.Exists(directoryPath)); }