コード例 #1
0
        private void AssertContainsIconColor(string folderPath, string iconName, RequiredColor expectedColor)
        {
            string  fullImagePath = Path.Combine(folderPath, iconName);
            SKColor actualColor   = TestColorHelper.GetAverageColor(fullImagePath);

            TestColorHelper.AssertSameColor(SKColor.Parse(expectedColor.ColorHexValue), actualColor);
        }
コード例 #2
0
        private void AssertIconColor(string fullImagePath, RequiredColor requiredColor)
        {
            SKColor actualColor = TestColorHelper.GetAverageColor(fullImagePath);

            TestColorHelper.AssertSameColor(SKColor.Parse(requiredColor.ColorHexValue), actualColor);
        }