public void ItShouldGetAllProjectsForAGivenCollection() { var mockProxy = new Mock<ITFSProjectProxy>(); var projects = new List<Project>(); projects.Add(new Project { Name = "Project 01" }); projects.Add(new Project { Name = "Project 02" }); mockProxy.Setup(p => p.GetProjectsByProjectCollection()) .Returns(projects) .Verifiable(); var repository = new ProjectRepository(mockProxy.Object); var results = repository.GetAll(); Assert.IsTrue(results != null); Assert.IsTrue(results.SequenceEqual<Project>(projects), "The expected projects for a given collection don't much the results"); }