Exemple #1
0
        public void EmptyNameTest()
        {
            PersistentNextSpaceArray pnsa = null;

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

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