public void RemoveHIQuotes() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "- Where?!" + Environment.NewLine + "- Ow!"; string expected = "Where?!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections11() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "- Ballpark, mm-hm." + Environment.NewLine + "- Oh yes!"; string expected = "- Ballpark." + Environment.NewLine + "- Yes!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections10Italic() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "<i>- You like her, huh." + Environment.NewLine + "- I do</i>"; string expected = "<i>- You like her." + Environment.NewLine + "- I do</i>"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections8() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "You like her, huh!"; string expected = "You like her!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections6bItalic() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "<i>Mm-hm, Ballpark.</i>"; string expected = "<i>Ballpark.</i>"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections11() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "- Ballpark, mm-hm." + Environment.NewLine + "- Oh yes!"; string expected = "- Ballpark." + Environment.NewLine + "- Yes!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections10Italic() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "<i>- You like her, huh." + Environment.NewLine + "- I do</i>"; string expected = "<i>- You like her." + Environment.NewLine + "- I do</i>"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections8() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "You like her, huh!"; string expected = "You like her!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveInterjections6bItalic() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxRemoveInterjections.Checked = true; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "<i>Mm-hm, Ballpark.</i>"; string expected = "<i>Ballpark.</i>"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }
public void RemoveHIQuotes() { FormRemoveTextForHearImpaired_Accessor target = new FormRemoveTextForHearImpaired_Accessor(); target.checkBoxRemoveIfAllUppercase.Checked = false; target.checkBoxOnlyIfInSeparateLine.Checked = false; target.checkBoxRemoveTextBeforeColonOnlyUppercase.Checked = false; target.checkBoxColonSeparateLine.Checked = false; string text = "- Where?!" + Environment.NewLine + "- Ow!"; string expected = "Where?!"; string actual = target.RemoveInterjections(text); Assert.AreEqual(expected, actual); }