public static void Wait_Invalid()
{
var obj = new object();
Assert.Throws<ArgumentNullException>("obj", () => Monitor.Wait(null));
Assert.Throws<ArgumentNullException>("obj", () => Monitor.Wait(null, 1));
Assert.Throws<ArgumentNullException>("obj", () => Monitor.Wait(null, TimeSpan.Zero));
Assert.Throws<ArgumentOutOfRangeException>("millisecondsTimeout", () => Monitor.Wait(null, -1));
Assert.Throws<ArgumentOutOfRangeException>("timeout", () => Monitor.Wait(null, TimeSpan.FromMilliseconds(-1)));
}