Ejemplo n.º 1
0
        public void UpperCaseWordsAnalyzeWith_MoreThan2500_LengthStatement()
        {
            // arrange
            string inputStatement = File.ReadAllText(Path.Combine(resourcesPath, "IntroductionToKarimMansour.txt"));
            UpperCaseWordsAnalyer        analyzer = new UpperCaseWordsAnalyer();
            UpperCaseWordsAnalyzerHelper helper   = new UpperCaseWordsAnalyzerHelper();
            string expected = helper.Analize(inputStatement);

            // act
            string actual = analyzer.Analize(inputStatement);

            // assert
            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void UpperCaseWordsAnalyzeWith_MoreThan200K_LengthStatement()
        {
            // arrange
            string inputStatement = File.ReadAllText(Path.Combine(resourcesPath, "Wikipedia_NetherlandsAndEindhoven.txt"));
            UpperCaseWordsAnalyer        analyzer = new UpperCaseWordsAnalyer();
            UpperCaseWordsAnalyzerHelper helper   = new UpperCaseWordsAnalyzerHelper();
            string expected = helper.Analize(inputStatement);

            // act
            string actual = analyzer.Analize(inputStatement);

            // assert
            Assert.AreEqual(expected, actual);
        }