public void TestSuccessfulSimpleAnalyzing()
        {
            //Given
            AnalyzerImpl analyzer = new AnalyzerImpl();
            analyzer.LastResponse = "This is some test text";
            FindText parameter = new FindText("some");

            //When
            analyzer.Analyze(parameter);

            //Then
            Assert.AreEqual(true,parameter.Status);
            Assert.AreEqual(FindText.SuccessMessage, parameter.Title);
        }
        public void TestFailureInSimpleAnalyzing()
        {
            //Given
            AnalyzerImpl analyzer = new AnalyzerImpl();
            analyzer.LastResponse = "This is some test text";
            FindText parameter = new FindText("other text");

            //When
            analyzer.Analyze(parameter);

            //Then
            Assert.AreEqual(false, parameter.Status);
            Assert.AreEqual(FindText.FailureMessage, parameter.Title);
        }