public void GetCollectionReturnsPutObjects() { using (var client = new InnerDbClient("GetCollection")) { var actual = client.GetCollection <Sword>(); client.PutObject(masamune); client.PutObject(murasame); client.PutObject(lavos); actual = client.GetCollection <Sword>(); Assert.AreEqual(2, actual.Count); Assert.AreEqual(masamune, actual.ElementAt(0)); Assert.AreEqual(murasame, actual.ElementAt(1)); } }
public void GetCollectionReturnsEmptyListIfNoItemsExist() { using (var client = new InnerDbClient("Empty")) { var actual = client.GetCollection <Sword>(); Assert.IsNotNull(actual); Assert.AreEqual(0, actual.Count); } }