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)); }
public void CreateNewFile_Throws() { var dir = new HfsPlusDirectory(new Context(), new CatalogNodeId(0), new CatalogFileInfo()); Assert.Throws <NotSupportedException>(() => dir.CreateNewFile(null)); }