public void Sample_MethodResultEnumerableDto() { dynamic isolated = new DynamicMock(); isolated.LoadItems().Returns(new[] { new { Id = 1, Name = "1" }, new { Id = 2, Name = "2" } }); ISampleInterface result = isolated; var actual = result.LoadItems(); Assert.IsTrue(actual.SequenceEqual(new[] { new SomeDtoWithVeryLongName { Id = 1, Name = "1" }, new SomeDtoWithVeryLongName { Id = 2, Name = "2" } })); }