/// <exception cref="System.Exception"/> public override void TestRenameFileBeingAppended() { try { base.TestRenameFileBeingAppended(); NUnit.Framework.Assert.Fail("Expected a FileNotFoundException"); } catch (FileNotFoundException e) { // downgrade ContractTestUtils.Downgrade("Renaming an open file" + "still creates the old path" , e); } }
/// <summary> /// tweak some of the contract parameters based on the local system /// state /// </summary> protected internal virtual void AdjustContractToLocalEnvironment() { if (Shell.Windows) { //NTFS doesn't do case sensitivity, and its permissions are ACL-based GetConf().SetBoolean(GetConfKey(ContractOptions.IsCaseSensitive), false); GetConf().SetBoolean(GetConfKey(ContractOptions.SupportsUnixPermissions), false); } else { if (ContractTestUtils.IsOSX()) { //OSX HFS+ is not case sensitive GetConf().SetBoolean(GetConfKey(ContractOptions.IsCaseSensitive), false); } } }