public void EmptyNameTest() { PersistentNextSpaceArray pnsa=null; try { pnsa = new PersistentNextSpaceArray("", 6, 6); Assert.Fail("Should throw exception"); } catch (FileNotFoundException) { if(pnsa != null) pnsa.Close(); } }
public void NoArrayTest() { PersistentNextSpaceArray pnsa = null; try { pnsa = new PersistentNextSpaceArray("PADoesntExsist"); Assert.Fail("Should throw exception"); } catch (FileNotFoundException) { if(pnsa != null) pnsa.Close(); } }