public void Can_Get_Directory_For_File_Path_In_Root() { // Given, When var path = new FilePath("hello.txt"); var directory = path.GetDirectory(); // Then Assert.Equal(string.Empty, directory.FullPath); }
public void Can_Get_Directory_For_File_Path() { // Given, When var path = new FilePath("temp/hello.txt"); var directory = path.GetDirectory(); // Then Assert.Equal("temp", directory.FullPath); }