public void CreateSeededAndCountedManyOnContainerReturnsCorrectResult() { // Arrange var seed = new Version(0, 9); var count = 4; var expectedResult = Enumerable.Range(1, count).Select(i => new Version(i, i)); var container = new DelegatingSpecimenContext { OnResolve = r => r.Equals(new FiniteSequenceRequest(new SeededRequest(typeof(Version), seed), count)) ? (object)expectedResult.Cast <object>() : new NoSpecimen() }; // Act var result = container.CreateMany(seed, count); // Assert Assert.True(expectedResult.SequenceEqual(result)); }