public void TestFind__NotFound() { UrlDir urlDir = UrlBuilder.CreateDir("abc"); UrlBuilder.CreateDir("def", urlDir); Assert.Null(urlDir.Find("def/ghi")); }
public void TestFind__DirectChild() { UrlDir urlDir = UrlBuilder.CreateDir("abc"); UrlDir.UrlFile urlFile = UrlBuilder.CreateFile("def.cfg", urlDir); Assert.Equal(urlFile, urlDir.Find("def")); }
public void TestFind__Extension__NotFound() { UrlDir urlDir = UrlBuilder.CreateDir("abc"); UrlBuilder.CreateFile("def/ghi.yyy", urlDir); UrlBuilder.CreateFile("def/ghi.zzz", urlDir); Assert.Null(urlDir.Find("def/ghi.cfg")); }
public void TestFind__Extension() { UrlDir urlDir = UrlBuilder.CreateDir("abc"); UrlBuilder.CreateFile("def/ghi.yyy", urlDir); UrlDir.UrlFile urlFile = UrlBuilder.CreateFile("def/ghi.cfg", urlDir); UrlBuilder.CreateFile("def/ghi.zzz", urlDir); Assert.Equal(urlFile, urlDir.Find("def/ghi.cfg")); }
public void TestFind__IntermediateDirectoryNotFound() { UrlDir urlDir = UrlBuilder.CreateDir("abc"); Assert.Null(urlDir.Find("def/ghi")); }