//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testLeaveFilesIfTestFails() public virtual void TestLeaveFilesIfTestFails() { Result r = JUnitCore.runClasses(typeof(Nested1)); Assert.AreEqual(1, r.FailureCount); Assert.IsTrue(Nested1.File != null && Nested1.File.Exists()); Nested1.File.delete(); }