NerdFontsTests.cs 583 B

1234567891011121314151617181920212223242526
  1. namespace Terminal.Gui.FileServicesTests;
  2. public class NerdFontTests
  3. {
  4. [Fact]
  5. public void TestAllExtensionsMapToKnownGlyphs ()
  6. {
  7. var f = new NerdFonts ();
  8. foreach (KeyValuePair<string, string> k in f.ExtensionToIcon)
  9. {
  10. Assert.Contains (k.Value, f.Glyphs.Keys);
  11. }
  12. }
  13. [Fact]
  14. public void TestAllFilenamesMapToKnownGlyphs ()
  15. {
  16. var f = new NerdFonts ();
  17. foreach (KeyValuePair<string, string> k in f.FilenameToIcon)
  18. {
  19. Assert.Contains (k.Value, f.Glyphs.Keys);
  20. }
  21. }
  22. }