public void Commit(string id) { id = @"store\" + id; /* Assume it exists. Null refs will end up failing a unit test, * which is what we want to happen. */ FileStream fs = this.storedData[id]; fs.Close(); this.commited.Add(id); }