コード例 #1
0
        /// <summary>
        ///     Check ListItem and then verify
        /// </summary>
        /// <param name="shouldVerify">Indicate whether or not to verify</param>
        public void Check(bool shouldVerify = true)
        {
            ReportAction("Check");
            UIItem.Check();
            CaptureImage();

            if (shouldVerify)
            {
                var friendlyMessage = ConstructFriendlyMessage(Resources.FriendlyListItemCheckMsg);
                QAAssert.AreEqual(true, UIItem.Checked, friendlyMessage);
            }
        }