ACPTest.UITesting.EntitySearchForName C# (CSharp) Method

EntitySearchForName() private method

private EntitySearchForName ( ) : void
return void
        public void EntitySearchForName()
        {
            this.UIMap.LaunchMicrosoftWord();
            UIMap.EntitySearchForName();
            UIMap.SaveDocument(directory + fileName);
            UIMap.ExitWindow();

            String output = UIMap.readFile(directory + fileName + ".txt");
            String expected = "The name of Steve Job biological mother is Joanne Schieble";
            String expected2 = "The name of steve job biological mother is Schieble";
            File.Delete(directory + fileName + ".txt");

            bool result = false;

            if (output.Trim().ToLower().Equals(expected.Trim().ToLower())
                || output.Trim().ToLower().Equals(expected2.Trim().ToLower()))
            {
                result = true;
            }

            Assert.IsTrue(result);
        }