public void RemoveColonTest()
 {
     var target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     string text = "Man over P.A.:\r\nGive back our homes.";
     string expected = "Give back our homes.";
     string actual = target.RemoveColon(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
        public void RemoveColonTest2a()
        {
            var target = new FormRemoveTextForHearImpaired_Accessor();

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxColonSeparateLine.Checked     = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            string text     = "GIOVANNI: <i>Number 9: I never look for a scapegoat.</i>";
            string expected = "<i>I never look for a scapegoat.</i>";
            string actual   = target.RemoveColon(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
        public void RemoveTextBeforeColonSecondLine()
        {
            FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveInterjections.Checked   = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text     = "- even if it was one week." + Environment.NewLine + "CANNING: Objection.";
            string expected = "- even if it was one week." + Environment.NewLine + "- Objection.";
            string actual   = target.RemoveColon(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
        public void RemoveColonTest()
        {
            var target = new FormRemoveTextForHearImpaired_Accessor();

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxColonSeparateLine.Checked     = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            string text     = "Man over P.A.:\r\nGive back our homes.";
            string expected = "Give back our homes.";
            string actual   = target.RemoveColon(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
        public void RemoveColonOnlyOnSeparateLine()
        {
            FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveInterjections.Checked   = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = true;
            string text     = "HECTOR: Hi.";
            string expected = "HECTOR: Hi.";
            string actual   = target.RemoveColon(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
 public void RemoveColonTest2a()
 {
     var target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     string text = "GIOVANNI: <i>Number 9: I never look for a scapegoat.</i>";
     string expected = "<i>I never look for a scapegoat.</i>";
     string actual = target.RemoveColon(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveTextBeforeColonSecondLine()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveInterjections.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "- even if it was one week." + Environment.NewLine  + "CANNING: Objection.";
     string expected = "- even if it was one week." + Environment.NewLine + "- Objection.";
     string actual = target.RemoveColon(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveColonOnlyOnSeparateLine()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveInterjections.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = true;
     string text = "HECTOR: Hi.";
     string expected = "HECTOR: Hi.";
     string actual = target.RemoveColon(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }