public void TestCommas() { var type = StatisticType.Comma; var helper = new StringStatisticsHelper(); var textToSearch = "This is text with , , ,,,,,,"; var statistic = helper.GetStatistics(type, textToSearch); Assert.IsNotNull(statistic); Assert.Greater(statistic.Count, 0); Assert.AreEqual(statistic.StatisticType, type); }
public void TestHyphens() { var type = StatisticType.Hyphen; var helper = new StringStatisticsHelper(); var textToSearch = "This is text with -- and more -- -"; var statistic = helper.GetStatistics(type, textToSearch); Assert.IsNotNull(statistic); Assert.Greater(statistic.Count, 0); Assert.AreEqual(statistic.StatisticType, type); }