Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotObtainLockWhenStoreAlreadyInUse() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldNotObtainLockWhenStoreAlreadyInUse()
        {
            FileSystemAbstraction fileSystemAbstraction = new DelegatingFileSystemAbstractionAnonymousInnerClass5(this, FileSystemRule.get());

            try
            {
                using (StoreLocker storeLocker = new StoreLocker(fileSystemAbstraction, Target.storeLayout()))
                {
                    storeLocker.CheckLock();
                    fail();
                }
            }
            catch (StoreLockException e)
            {
                assertThat(e.Message, containsString("Store and its lock file has been locked by another process"));
            }
        }
Exemplo n.º 2
0
 public DelegatingStoreChannelAnonymousInnerClass(DelegatingFileSystemAbstractionAnonymousInnerClass5 outerInstance, UnknownType open) : base(open)
 {
     this.outerInstance = outerInstance;
 }