Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
         }
     }
 }