Пример #1
0
    /*
     * Test that an Interrupt outside of a Sleep hits the next
     * attempt to Sleep.
     */
    public void TestMonitorInterruptSleep()
    {
        if (!TestThread.IsThreadingSupported)
        {
            return;
        }

        MonitorInterruptSleep test = new MonitorInterruptSleep();
        String result = test.testMonitorInterruptSleep();

        if (result != null)
        {
            Assert(result, result == null);
        }
    }
Пример #2
0
	/*
	 * Test that an Interrupt outside of a Sleep hits the next
	 * attempt to Sleep.
	 */
	public void TestMonitorInterruptSleep()
	{
		if (!TestThread.IsThreadingSupported)
		{
			return;
		}

		MonitorInterruptSleep test = new MonitorInterruptSleep();
		String result = test.testMonitorInterruptSleep();
		if (result != null)
	  		Assert(result, result == null);
	}