public void T() { var firstFile = taxonomy.GetFile(@"testdata\emptyfile.txt"); var sameFile = taxonomy.GetFile(@"testdata\emptyfile.txt"); Assert.AreSame(firstFile, sameFile); var secondFile = taxonomy.GetFile(@"testdata\😂non😂bmp😂name😂\Audio.png"); var thirdFile = taxonomy.GetFile(@"testdata\zażółć gęślą jaźń\samecontent2.txt"); var rodzaj = new Namespace("rodzaj"); var firstTag = taxonomy.AddTag(rodzaj, new TagName("film")); var secondTag = taxonomy.AddTag(rodzaj, new TagName("ŚmieszneObrazki")); firstFile.Tags.Add(firstTag); thirdFile.Tags.Add(firstTag); secondFile.Tags.Add(secondTag); CollectionAssert.AreEquivalent(new[] { firstFile, thirdFile }, taxonomy.LookupFilesByTags(new[] { firstTag }).ToList()); CollectionAssert.AreEqual(new[] { rodzaj }, taxonomy.AllNamespaces().ToList()); CollectionAssert.AreEquivalent(new[] { firstTag, secondTag }, taxonomy.TagsInNamespace(rodzaj).ToList()); }