Dev2.Core.Tests.Dev2DialogueTest.createFile C# (CSharp) Method

createFile() private method

private createFile ( string fileName ) : void
fileName string
return void
        private void createFile(string fileName)
        {
            Bitmap flag = new Bitmap(10, 10);
            for(int x = 0; x < flag.Height; ++x)
            {
                for(int y = 0; y < flag.Width; ++y)
                {
                    flag.SetPixel(x, y, Color.White);
                }
            }
            for(int x = 0; x < flag.Height; ++x)
            {
                flag.SetPixel(x, x, Color.Red);
            }
            FileStream fs = File.Create(fileName);
            fs.Close();
            fs.Dispose();
            flag.Save(fileName);
        }