public static void LoadBitmap(TestContext _)
 {
     using Bitmap testBitmap = new Bitmap(Properties.Resources.Test);
     {
         _mBorders = ProvinceBorders.GetProvinceBorders(testBitmap, NumberOfColors);
     }
 }
        private async Task <ProvinceBorders> GetProvinceBordersAsync(Bitmap bitmap)
        {
            ProvinceBorders provinceBorders = await Task.Run <ProvinceBorders>(() =>
            {
                ProvinceBorders borders = ProvinceBorders.GetProvinceBorders(bitmap, 3000);
                return(borders);
            });

            return(provinceBorders);
        }