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

        MonitorInterruptEnter test = new MonitorInterruptEnter();
        String result = test.testMonitorInterruptEnter();

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

		MonitorInterruptEnter test = new MonitorInterruptEnter();
		String result = test.testMonitorInterruptEnter();
		if (result != null)
	  		Assert(result, result == null);
	}