using Blacklight.Core; using Glass.Blacklight; using UnitTestSharp; namespace Foundations.UnitTests { public class FoundationsFontsTests : TestFixture { private static void RegisterFonts() { new BlacklightRenderer().RegisterAllFonts(new NullWindowHandle()); } public class LiberationSans16Tests : TestFixture { public void IsLoadedByTheRenderer() { RegisterFonts(); CheckNotNull(FoundationsFonts.LiberationSans16); } } public class LiberationMono16Tests : TestFixture { public void IsLoadedByTheRenderer() { RegisterFonts(); CheckNotNull(FoundationsFonts.LiberationMono16); } } public class LiberationSans64Tests : TestFixture { public void IsLoadedByTheRenderer() { RegisterFonts(); CheckNotNull(FoundationsFonts.LiberationSans64); } public void IsLargerThanTheSkinsFont() { RegisterFonts(); CheckGreater( FoundationsFonts.LiberationSans64.LineHeight, FoundationsFonts.LiberationSans16.LineHeight); } } } }