public async Task ShouldReturnShowsWithOrderedByDescendingCasts() { // Arrange _shows.Add( new DataLayer.Domains.Show { People = new DateTime?[] { new DateTime(2000, 1, 1), null, new DateTime(2012, 12, 1), null, new DateTime(1988, 1, 1) } .Select(d => new DataLayer.Domains.ShowPersonAssoc { Person = new DataLayer.Domains.Person { Birthday = d } }) .ToList() } ); // Act var searchResults = await _showController.GetShows(); // Assert CollectionAssert.AreEqual( new [] { "2012-12-01", "2000-01-01", "1988-01-01", null, null }, searchResults.First().Cast.Select(p => p.Birthday) ); }