Beispiel #1
0
        public void GetEntryByName_InvalidName_Throws()
        {
            var dir = new HfsPlusDirectory(new Context(), new CatalogNodeId(0), new CatalogFileInfo());

            Assert.Throws <ArgumentNullException>(() => dir.GetEntryByName(null));
            Assert.Throws <ArgumentException>(() => dir.GetEntryByName(string.Empty));
        }
Beispiel #2
0
        public void CreateNewFile_Throws()
        {
            var dir = new HfsPlusDirectory(new Context(), new CatalogNodeId(0), new CatalogFileInfo());

            Assert.Throws <NotSupportedException>(() => dir.CreateNewFile(null));
        }