private TestLoadedFromJson ( Theme theme ) : void | ||
theme | Theme | |
return | void |
private void TestLoadedFromJson(Theme theme)
{
var styleManager = Utils.CreateStyleManager(theme);
var stylesProperty = styleManager.GetType().GetProperty("Styles", BindingFlags.Instance | BindingFlags.NonPublic);
var styles = (IDictionary<String, FormatDefinitionStyle>)stylesProperty.GetGetMethod(true).Invoke(styleManager, new Object[0]);
Assert.IsTrue(styles.Count > 0, $"Styles for {theme} theme not loaded");
}