//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateStoreDirAndObtainLockWhenStoreDirDoesNotExist() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldCreateStoreDirAndObtainLockWhenStoreDirDoesNotExist() { FileSystemAbstraction fileSystemAbstraction = new DelegatingFileSystemAbstractionAnonymousInnerClass2(this, FileSystemRule.get()); using (StoreLocker storeLocker = new StoreLocker(fileSystemAbstraction, Target.storeLayout())) { storeLocker.CheckLock(); // Ok } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldCloseAllOutputStreams() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void ShouldCloseAllOutputStreams() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<java.io.OutputStream> mockStreams = new java.util.ArrayList<>(); IList <Stream> mockStreams = new List <Stream>(); FileSystemAbstraction fs = new DelegatingFileSystemAbstractionAnonymousInnerClass2(this, _fileSystem, mockStreams); RotatingFileOutputStreamSupplier supplier = new RotatingFileOutputStreamSupplier(fs, _logFile, 10, 0, 10, _directExecutor); Write(supplier, "A string longer than 10 bytes"); supplier.Dispose(); AssertStreamClosed(mockStreams[0]); }
public DelegatingStoreChannelAnonymousInnerClass2(DelegatingFileSystemAbstractionAnonymousInnerClass2 outerInstance, UnknownType open) : base(open) { this.outerInstance = outerInstance; }