示例#1
0
        public void Simple_vertex_delete_should_work()
        {
            using (var storage = new GraphStorage())
            {
                long id;
                using (var tx = storage.WriteTransaction())
                {
                    id = storage.AddVertex(tx, new byte[] { 1, 2, 3 });
                    tx.Commit();
                }

                using (var tx = storage.WriteTransaction())
                {
                    storage.RemoveVertex(tx, id);
                    tx.Commit();
                }

                using (var tx = storage.ReadTransaction())
                    Assert.Null(storage.ReadVertexData(tx, id));
            }
        }