public void ToAnonymous_Entities_Anonymous() { var target = new FilterResult<int>(new int[] { 1, 2, 3 }, 6); var actual = target.ToAnonymous((i) => { return (i * 10).ToString(); }); var entities = actual.Entities.ToList(); Assert.AreEqual(3, entities.Count); Assert.AreEqual(6, actual.TotalCount); Assert.AreEqual("10", entities[0]); Assert.AreEqual("20", entities[1]); Assert.AreEqual("30", entities[2]); }