public void FileNameAccess(string filesystem, string pathname, string name, string basename, string extension) { IFileName filename = null; switch (filesystem.ToLower()) { case "dragondos": filename = DragonDos.GetFileName(pathname); break; case "flex": filename = Flex.GetFileName(pathname); break; case "os9": filename = OS9.GetFileName(pathname); break; case "rsdos": filename = RsDos.GetFileName(pathname); break; default: Assert.True(false, "Unknown filesystem " + filesystem); break; } Assert.Equal(name, filename.Name); Assert.Equal(basename, filename.Base); Assert.Equal(extension, filename.Extension); //TODO Add test for Ascend method //TODO Add test for Descend method }