Balakin.VSOutputEnhancer.Tests.UnitTests.StyleManagerTests.TestSimilarColors C# (CSharp) Method

TestSimilarColors() private method

private TestSimilarColors ( ICollection styles, String groupName ) : void
styles ICollection
groupName String
return void
        private void TestSimilarColors(ICollection<FormatDefinitionStyle> styles, String groupName)
        {
            var foregroundColors = styles.Select(s => s.ForegroundColor).Distinct().ToList();
            Assert.IsTrue(foregroundColors.Count <= 1, $"Some {groupName} styles has different colors");
        }

Same methods

StyleManagerTests::TestSimilarColors ( Theme theme ) : void