示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void checkDestination(java.nio.file.Path path) throws org.neo4j.commandline.admin.CommandFailed
        private void CheckDestination(Path path)
        {
            if (!_outsideWorld.fileSystem().isDirectory(path.toFile()))
            {
                throw new CommandFailed(format("Directory '%s' does not exist.", path));
            }
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void Setup()
        {
            _homeDir = _testDir.directory("home").toPath();
            _confDir = _testDir.directory("conf").toPath();
            _fs.mkdir(_homeDir.toFile());

            when(_outsideWorld.fileSystem()).thenReturn(_fs);
        }