Ejemplo n.º 1
0
        public void AccountPositionTableRowCount()
        {
            ListView list = Window.Get <ListView>(TestDataInfrastructure.GetControlId("PositionTableId"));
            //read number of account positions from the AccountPosition.xml data file
            int positionRowCount = TestDataInfrastructure.GetCount <AccountPositionDataProvider, AccountPosition>();

            Assert.AreEqual(positionRowCount, list.Rows.Count);
        }
Ejemplo n.º 2
0
        public void ApplicationLaunch()
        {
            ListView list = Window.Get <ListView>(TestDataInfrastructure.GetControlId("PositionTableId"));

            Assert.IsNotNull(list);

            //read number of account positions from the AccountPosition.xml data file
            int positionRowCount = TestDataInfrastructure.GetCount <AccountPositionDataProvider, AccountPosition>();

            Assert.AreEqual(positionRowCount, list.Rows.Count);

            // News button is no longer on grid
            //SearchCriteria searchCriteria = SearchCriteria.ByText(TestDataInfrastructure.GetControlId("NewsButtonName")).AndControlType(typeof(Button));
            //Button button = window.Get<Button>(searchCriteria);
            //Assert.IsNotNull(button);

            //pie chart and line chart could not be automated
        }