//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); }
//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); }
//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)); }
internal static void TriggerOn(SorePoint pt) { if (pt == @where) { switch (Type) { case Lucene.Net.Util.junitcompat.SoreType.ASSUMPTION: LuceneTestCase.assumeTrue(pt.ToString(), false); throw new Exception("unreachable"); case Lucene.Net.Util.junitcompat.SoreType.ERROR: throw new Exception(pt.ToString()); case Lucene.Net.Util.junitcompat.SoreType.FAILURE: Assert.IsTrue(pt.ToString(), false); throw new Exception("unreachable"); } } }
//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); }