Пример #1
0
        public void Get_when_bucket_exists_with_many_objects_returns_list_of_objects_with_key()
        {
            var mock = new MockFileSystem();

            mock.Directory.SetCurrentDirectory(@"C:\Temp");

            var sut = new Tablet(mock);

            sut.Init();

            sut.Push(new Fake {
                Value = 1
            }, k => k.Value);
            sut.Push(new Fake {
                Value = 1
            }, k => k.Value);

            var actual = sut.Get <Fake, int>(1);

            Assert.Equal(new List <Fake> {
                new Fake {
                    Value = 1
                }, new Fake {
                    Value = 1
                }
            }, actual, new FakeComparer());
        }