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);
}