public void Sample_MethodResultIsDto() { dynamic isolated = new DynamicMock(); isolated.LoadSomeDtoWithVeryLongName().Returns(new { Id = 42, Name = "subbotnik" }); ISampleInterface result = isolated; var actual = result.LoadSomeDtoWithVeryLongName(); var expected = new SomeDtoWithVeryLongName { Id = 42, Name = "subbotnik" }; Assert.AreEqual(expected, actual); }