//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRunJobContinuously() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldRunJobContinuously() { // given System.Threading.CountdownEvent latch = new System.Threading.CountdownEvent(10); ThreadStart task = latch.countDown; ContinuousJob continuousJob = new ContinuousJob(_scheduler.threadFactory(Group.RAFT_BATCH_HANDLER), task, NullLogProvider.Instance); // when using (Lifespan ignored = new Lifespan(_scheduler, continuousJob)) { //then assertTrue(latch.await(DEFAULT_TIMEOUT_MS, MILLISECONDS)); } }