Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testErrorAfter() throws Exception
        public virtual void TestErrorAfter()
        {
            Type   = SoreType.ERROR;
            @where = SorePoint.AFTER;
            string syserr = RunAndReturnSyserr();

            Assert.IsTrue(syserr.Contains("NOTE: reproduce with:"));
            Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtests.method=test"));
            Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtestcase=" + typeof(Nested).SimpleName));
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testFailureBefore() throws Exception
        public virtual void TestFailureBefore()
        {
            Type   = SoreType.FAILURE;
            @where = SorePoint.BEFORE;
            string syserr = RunAndReturnSyserr();

            Assert.IsTrue(syserr.Contains("NOTE: reproduce with:"));
            Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtests.method=test"));
            Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtestcase=" + typeof(Nested).SimpleName));
        }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testFailureTest() throws Exception
 public virtual void TestFailureTest()
 {
     Type = SoreType.FAILURE;
     @where = SorePoint.TEST;
     string syserr = RunAndReturnSyserr();
     Assert.IsTrue(syserr.Contains("NOTE: reproduce with:"));
     Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtests.method=test"));
     Assert.IsTrue(Arrays.AsList(syserr.Split("\\s", true)).Contains("-Dtestcase=" + typeof(Nested).SimpleName));
 }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testFailureInitializer() throws Exception
 public virtual void TestFailureInitializer()
 {
     Type = SoreType.FAILURE;
     @where = SorePoint.INITIALIZER;
     Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
 }
 /*
    * FAILURES
    */
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testFailureBeforeClass() throws Exception
 public virtual void TestFailureBeforeClass()
 {
     Type = SoreType.FAILURE;
     @where = SorePoint.BEFORE_CLASS;
     Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
 }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testErrorAfterClass() throws Exception
 public virtual void TestErrorAfterClass()
 {
     Type = SoreType.ERROR;
     @where = SorePoint.AFTER_CLASS;
     Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
 }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testAssumeRule() throws Exception
 public virtual void TestAssumeRule()
 {
     Type = SoreType.ASSUMPTION;
     @where = SorePoint.RULE;
     Assert.AreEqual("", RunAndReturnSyserr());
 }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testAssumeInitializer() throws Exception
 public virtual void TestAssumeInitializer()
 {
     Type = SoreType.ASSUMPTION;
     @where = SorePoint.INITIALIZER;
     Assert.IsTrue(RunAndReturnSyserr().Length == 0);
 }
Example #9
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testAssumeRule() throws Exception
        public virtual void TestAssumeRule()
        {
            Type   = SoreType.ASSUMPTION;
            @where = SorePoint.RULE;
            Assert.AreEqual("", RunAndReturnSyserr());
        }
Example #10
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testErrorInitializer() throws Exception
        public virtual void TestErrorInitializer()
        {
            Type   = SoreType.ERROR;
            @where = SorePoint.INITIALIZER;
            Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
        }
Example #11
0
        /*
         * FAILURES
         */

//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testFailureBeforeClass() throws Exception
        public virtual void TestFailureBeforeClass()
        {
            Type   = SoreType.FAILURE;
            @where = SorePoint.BEFORE_CLASS;
            Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
        }
Example #12
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testAssumeAfterClass() throws Exception
        public virtual void TestAssumeAfterClass()
        {
            Type   = SoreType.ASSUMPTION;
            @where = SorePoint.AFTER_CLASS;
            Assert.IsTrue(RunAndReturnSyserr().Length == 0);
        }
Example #13
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testAssumeTest() throws Exception
        public virtual void TestAssumeTest()
        {
            Type   = SoreType.ASSUMPTION;
            @where = SorePoint.TEST;
            Assert.IsTrue(RunAndReturnSyserr().Length == 0);
        }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testAssumeAfter() throws Exception
 public virtual void TestAssumeAfter()
 {
     Type = SoreType.ASSUMPTION;
     @where = SorePoint.AFTER;
     Assert.IsTrue(RunAndReturnSyserr().Length == 0);
 }
Example #15
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testErrorAfterClass() throws Exception
        public virtual void TestErrorAfterClass()
        {
            Type   = SoreType.ERROR;
            @where = SorePoint.AFTER_CLASS;
            Assert.IsTrue(RunAndReturnSyserr().Contains("NOTE: reproduce with:"));
        }
 //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
 //ORIGINAL LINE: @Test public void testAssumeBeforeClass() throws Exception
 public virtual void TestAssumeBeforeClass()
 {
     Type = SoreType.ASSUMPTION;
     @where = SorePoint.BEFORE_CLASS;
     Assert.IsTrue(RunAndReturnSyserr().Length == 0);
 }
Example #17
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testAssumeInitializer() throws Exception
        public virtual void TestAssumeInitializer()
        {
            Type   = SoreType.ASSUMPTION;
            @where = SorePoint.INITIALIZER;
            Assert.IsTrue(RunAndReturnSyserr().Length == 0);
        }