public void CreatingAndIteratingOverProfiles_ReturnsTheSameInstances() { // Arrange FileSystemProfileStorage storage = new FileSystemProfileStorage(_fileSystem); // Act IProfile created = storage.Create("foo"); IProfile iterated = storage.First(p => p.Name == "foo"); // Assert Assert.AreSame(iterated, created); }
public void GettingAndIteratingOverProfiles_ReturnsTheSameInstances() { // Arrange FileSystemProfileStorage storage = new FileSystemProfileStorage(_fileSystem); // Act IProfile iterated = storage.First(p => p.Name == "default"); IProfile gotten = storage.Get("default"); // Assert Assert.AreSame(iterated, gotten); }