/// <summary> /// Asserts that the element is not checked. /// </summary> /// <param name="handle">An <see cref="ElementHandle"/></param> /// <param name="message">Optional failure message</param> /// <remarks><![CDATA[Elements: <command>, <input>]]></remarks> /// <returns>The <see cref="ElementHandle"/> for method chaining</returns> public static ElementHandle ShouldNotBeChecked(this ElementHandle handle, string message = null) { if (handle.IsChecked()) { Throw.ShouldNotBeChecked(handle, message); } return(handle); }