private void GetSubAccountPages_AddSubAccountCheckCountOfPagesMoreThanOneDeleteSubAccount(OutputType output) { int idSubAccountToDelete = AddSubAccount(output); subAccount.AddPagesToSubAccount(idSubAccountToDelete, MonitisAccountInformation.PagesInYourAccount); var subAccountsPages = subAccount.GetSubAccountPages(output); if (subAccountsPages.First(p => p.id == idSubAccountToDelete).pages.Length == MonitisAccountInformation.PagesInYourAccount.Length) { subAccount.DeleteSubAccount(idSubAccountToDelete); Assert.Pass("Count of pages correct!"); } else { subAccount.DeleteSubAccount(idSubAccountToDelete); Assert.Fail("Count of pages incorrect!"); } }