public void TestCNoId() { _collection.RemoveAll(); var document = new CNoId { A = 1 }; Assert.Throws <InvalidOperationException>(() => _collection.Save(document)); }
public void TestCNoId() { collection.RemoveAll(); var document = new CNoId { A = 1 }; Assert.Throws<InvalidOperationException>(() => collection.Save(document)); }
public void TestCNoId() { collection.RemoveAll(); var document = new CNoId { A = 1 }; collection.Save(document); Assert.AreEqual(1, collection.Count()); collection.Save(document); Assert.AreEqual(2, collection.Count()); }