public void ThenShouldBeAbleToVerifyTheAddLanguage()
        {
            ExcelLibHelper.PopulateInCollection(ConstantHelpers.DataFilePath, "Language");
            bool actualResult = addLanguage.VerifyLanguage(ExcelLibHelper.ReadData(2, "Language"));

            //Assert.True(actualResult);
            if (actualResult)
            {
                Assert.True(actualResult);
            }
            else
            {
                Assert.Fail("Verification Failed.");
                throw new Exception("Result does not match");
            }
        }
        public void AddLanguage()
        {
            //Populate the excel data
            GlobalDefinitions.ExcelLib.PopulateInCollection(Base.ExcelPath, "Profile");
            test = extent.CreateTest("Add Language Skill");
            test.Log(Status.Info, "Starting the Add Language Test");
            LanguagePage AddLanguage = new LanguagePage();

            AddLanguage.Addlanguage(GlobalDefinitions.ExcelLib.ReadData(2, "Language"), GlobalDefinitions.ExcelLib.ReadData(2, "Level"));
            bool actual = AddLanguage.VerifyLanguage(GlobalDefinitions.ExcelLib.ReadData(2, "Language"));

            if (actual)
            {
                test.Log(Status.Pass, "Add Language Successfull");
                Assert.IsTrue(actual);
            }
            else
            {
                test.Log(Status.Fail, "Add Language Failed");
                Assert.IsTrue(actual);
            }
        }