public void RemoveHINot()
        {
            FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();

            target.checkBoxRemoveIfAllUppercase.Checked = false;
            target.checkBoxOnlyIfInSeparateLine.Checked = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text     = "is the body of a mutant kid\r\non the 6:00 news.";
            string expected = "is the body of a mutant kid\r\non the 6:00 news.";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

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

            target.checkBoxRemoveIfAllUppercase.Checked               = false;
            target.checkBoxOnlyIfInSeparateLine.Checked               = false;
            target.checkBoxRemoveTextBetweenSquares.Checked           = true;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text     = "[MAN]Where?![MAN]";
            string expected = "Where?!";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

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

            target.checkBoxRemoveIfAllUppercase.Checked               = false;
            target.checkBoxOnlyIfInSeparateLine.Checked               = false;
            target.checkBoxRemoveTextBetweenSquares.Checked           = true;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text     = "- Aw, save it. Storm?\r\n- [Storm]\r\nWe're outta here.";
            string expected = "- Aw, save it. Storm?\r\n- We're outta here.";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

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

            target.checkBoxRemoveIfAllUppercase.Checked               = false;
            target.checkBoxOnlyIfInSeparateLine.Checked               = false;
            target.checkBoxRemoveTextBetweenSquares.Checked           = true;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text     = "[Chuckles,\r\nCoughing]\r\nBut we lived through it.";
            string expected = "But we lived through it.";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
        public void RemoveRemoveNameOfFirstLineBold()
        {
            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     = "<b>HECTOR: Hi.</b>";
            string expected = "<b>Hi.</b>";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

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

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text = "- JOHN: Hey." + Environment.NewLine +
                          "- ...hey.";
            string expected = "- Hey." + Environment.NewLine + "- ...hey.";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

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

            target.checkBoxRemoveIfAllUppercase.Checked  = false;
            target.checkBoxRemoveTextBeforeColon.Checked = true;
            target.checkBoxOnlyIfInSeparateLine.Checked  = false;
            target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
            target.checkBoxColonSeparateLine.Checked = false;
            string text = "<b>NARRATOR:" + Environment.NewLine +
                          "Previously on NCIS</b>";
            string expected = "<b>Previously on NCIS</b>";
            string actual   = target.RemoveTextFromHearImpaired(text, string.Empty);

            Assert.AreEqual(expected, actual);
        }
 public void RemoveHIDouble()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBetweenSquares.Checked = true;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "[MAN]Where?![MAN]";
     string expected = "Where?!";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveRemoveNameOfFirstLineBold()
 {
     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 = "<b>HECTOR: Hi.</b>";
     string expected = "<b>Hi.</b>";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveHISecondLineDelay()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "- JOHN: Hey." + Environment.NewLine +
                   "- ...hey.";
     string expected = "- Hey."+ Environment.NewLine +"- ...hey.";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveHIMultilineBold()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxRemoveTextBeforeColon.Checked = true;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "<b>NARRATOR:" + Environment.NewLine +
                   "Previously on NCIS</b>";
     string expected = "<b>Previously on NCIS</b>";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveHINot()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "is the body of a mutant kid\r\non the 6:00 news.";
     string expected = "is the body of a mutant kid\r\non the 6:00 news.";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveHI2()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBetweenSquares.Checked = true;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "[Chuckles,\r\nCoughing]\r\nBut we lived through it.";
     string expected = "But we lived through it.";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }
 public void RemoveHI1()
 {
     FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor();
     target.checkBoxRemoveIfAllUppercase.Checked = false;
     target.checkBoxOnlyIfInSeparateLine.Checked = false;
     target.checkBoxRemoveTextBetweenSquares.Checked = true;
     target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false;
     target.checkBoxColonSeparateLine.Checked = false;
     string text = "- Aw, save it. Storm?\r\n- [Storm]\r\nWe're outta here.";
     string expected = "- Aw, save it. Storm?\r\n- We're outta here.";
     string actual = target.RemoveTextFromHearImpaired(text, string.Empty);
     Assert.AreEqual(expected, actual);
 }