Balakin.VSOutputEnhancer.Tests.UnitTests.UnitTestsTests.TestCreateTextFormattingRunProperties C# (CSharp) Метод

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

private TestCreateTextFormattingRunProperties ( Color foreground, Color background ) : void
foreground Color
background Color
Результат void
        private void TestCreateTextFormattingRunProperties(Color? foreground, Color? background)
        {
            var textProperties = Utils.CreateTextFormattingRunProperties(foreground, background);
            Assert.AreEqual(!background.HasValue, textProperties.BackgroundBrushEmpty, $"Foreground: {foreground}, Background: {background}");
            Assert.AreEqual(!foreground.HasValue, textProperties.ForegroundBrushEmpty, $"Foreground: {foreground}, Background: {background}");
            TestSolidColorBrush(textProperties.BackgroundBrush, background);
            TestSolidColorBrush(textProperties.ForegroundBrush, foreground);
        }