Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.junit.runners.model.Statement apply(final org.junit.runners.model.Statement super, final org.junit.runner.Description description)
        public override Statement Apply(Statement @base, Description description)
        {
            Statement testMethod = new StatementAnonymousInnerClass(this, @base, description);

            Statement testMethodWithBeforeAndAfter = base.Apply(testMethod, description);

            return(_testDirectory.apply(testMethodWithBeforeAndAfter, description));
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.junit.runners.model.Statement apply(final org.junit.runners.model.Statement super, org.junit.runner.Description description)
        public override Statement Apply(Statement @base, Description description)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.neo4j.test.rule.TestDirectory directory = org.neo4j.test.rule.TestDirectory.testDirectory(description.getTestClass());
            TestDirectory directory = TestDirectory.testDirectory(description.TestClass);

            return(base.apply(directory.apply(new StatementAnonymousInnerClass(this, @base, directory)
                                              , description), description));
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public org.junit.runners.model.Statement apply(final org.junit.runners.model.Statement super, final org.junit.runner.Description description)
        public override Statement Apply(Statement @base, Description description)
        {
            Statement timeoutStatement;

            if (_timeoutBuilder != null)
            {
                timeoutStatement = _timeoutBuilder.build().apply(@base, description);
            }
            else
            {
                timeoutStatement = @base;
            }

            Statement testMethod = new StatementAnonymousInnerClass(this, description, timeoutStatement);

            Statement testMethodWithBeforeAndAfter = base.Apply(testMethod, description);

            return(_testDirectory.apply(testMethodWithBeforeAndAfter, description));
        }