public void TestCreateExisting()
{
String filename = "existing.txt";
GridFile gf = new GridFile(db["tests"],"gfcreate");
GridFileInfo gfi = new GridFileInfo(db["tests"],"gfcreate", filename);
GridFileStream gfs = gfi.Create();
bool thrown = false;
try{
gfi = new GridFileInfo(db["tests"],"create", filename);
gfi.Create();
}catch(IOException){
thrown = true;
}
Assert.IsTrue(thrown, "Shouldn't be able to create the same file twice.");
}