Balakin.VSOutputEnhancer.Tests.UnitTests.StyleManagerTests.TestLoadedFromJson C# (CSharp) Метод

TestLoadedFromJson() приватный Метод

private TestLoadedFromJson ( Theme theme ) : void
theme Theme
Результат 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");
        }