public static void UrlEncodeToBytes_InvalidOffset_ThrowsArgumentOutOfRangeException(int offset) { Assert.Throws<ArgumentOutOfRangeException>("offset", () => WebUtility.UrlEncodeToBytes(new byte[1], offset, 0)); }