示例#1
0
        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);
        }
示例#2
0
        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);
        }