public void ResultsProperty_WhenProviderHasCompletedRefreshing_HasCorrectColumnGroupsData() { this.ConfigureProviderToProduceResults(); IGroup expectedColumnGroup = new TestGroup("Grand Total") { new TestGroup("1 Free with 10"), new TestGroup("Extra Discount"), }; this.provider.Refresh(); this.provider.BlockUntilRefreshCompletes(); var results = ((IDataProvider)this.provider).Results; bool equal = GroupTestsHelper.AreGroupsEqual(expectedColumnGroup, results.Root.ColumnGroup); Assert.IsTrue(equal); }
public void ResultsProperty_WhenProviderHasCompletedRefreshing_HasCorrectRowGroupsData() { this.ConfigureProviderToProduceResults(); IGroup expectedRowGroup = new TestGroup("Grand Total") { new TestGroup("Copy holder"), new TestGroup("Glare filter"), new TestGroup("Mouse pad"), new TestGroup("Printer stand"), }; this.provider.Refresh(); this.provider.BlockUntilRefreshCompletes(); var results = ((IDataProvider)this.provider).Results; bool equal = GroupTestsHelper.AreGroupsEqual(expectedRowGroup, results.Root.RowGroup); Assert.IsTrue(equal); }