public void SingleEntity_TenRecords_WithCountAsOne_ReturnsTen() { XrmFakedContext fakedContext = SupportMethods.SetupPrimitiveFakedService( SupportMethods.ThemeLogicalName, SupportMethods.ThemeDisplayName, SupportMethods.GetSingleEntity_TenRowsEntity().ToArray()); IOrganizationService fakedService = fakedContext.GetOrganizationService(); DataBuilder DataBuilder = new DataBuilder(fakedService); DataBuilder.AppendData(SupportMethods.GetBooleanTypeFetch_CountIsOne()); var innerXml = DataBuilder.BuildDataXML(); Assert.IsTrue(innerXml.SelectSingleNode("//entities/entity/records").ChildNodes.Count == 10); }