public void MaxAutomaticRedirections_SetNegativeValue_ThrowsArgumentOutOfRangeException() { var handler = new WinHttpHandler(); Assert.Throws<ArgumentOutOfRangeException>(() => { handler.MaxAutomaticRedirections = -1; }); }