Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • r66020 -trunk/mcs/class/System.Drawing/Test/System.Drawing

    0 answers - 2092 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Author: spouliot
    Date: 2006-09-28 08:28:25 -0400 (Thu, 28 Sep 2006)
    New Revision: 66020
    Modified:
    Log:
    2006-09-28 Sebastien Pouliot <sebastien (AT) ximian (DOT) com>
    * TestGraphics.cs: Added test cases for bug #77699 (with and without
    wrapping).
    Modified:
    2006-09-28 12:27:17 UTC (rev 66019)
    2006-09-28 12:28:25 UTC (rev 66020)
    @@ -1,3 +1,8 @@
    +2006-09-28 Sebastien Pouliot <sebastien (AT) ximian (DOT) com>
    +
    +* TestGraphics.cs: Added test cases for bug #77699 (with and without
    +wrapping).
    +
    2006-09-26Boris Kirzner <borisk (AT) mainsoft (DOT) com>
    * TestStringFormat.cs: fix build for TARGET_JVM.
    Modified:
    2006-09-28 12:27:17 UTC (rev 66019)
    2006-09-28 12:28:25 UTC (rev 66020)
    @@ -1513,6 +1513,41 @@
    }
    }
    }
    +
    +[Test]
    +public void ()
    +{
    +using (Bitmap bitmap = new Bitmap (20, 20)) {
    +using (Graphics g = Graphics.FromImage (bitmap)) {
    +Rectangle rect = Rectangle.Empty;
    +rect.Location = new Point (10, 10);
    +rect.Size = new Size (1, 20);
    +StringFormat fmt = new StringFormat ();
    +fmt.Alignment = StringAlignment.Center;
    +fmt.LineAlignment = StringAlignment.Center;
    +fmt.FormatFlags = StringFormatFlags.NoWrap;
    +fmt.Trimming = StringTrimming.EllipsisWord;
    +g.DrawString ("Test String", font, Brushes.Black, rect, fmt);
    +}
    +}
    +}
    +
    +[Test]
    +public void ()
    +{
    +using (Bitmap bitmap = new Bitmap (20, 20)) {
    +using (Graphics g = Graphics.FromImage (bitmap)) {
    +Rectangle rect = Rectangle.Empty;
    +rect.Location = new Point (10, 10);
    +rect.Size = new Size (1, 20);
    +StringFormat fmt = new StringFormat ();
    +fmt.Alignment = StringAlignment.Center;
    +fmt.LineAlignment = StringAlignment.Center;
    +fmt.Trimming = StringTrimming.EllipsisWord;
    +g.DrawString ("Test String", font, Brushes.Black, rect, fmt);
    +}
    +}
    +}
    #if NET_2_0
    [Test]
    public void TestReleaseHdc ()
    Mono-patches maillist - Mono-patches (AT) lists (DOT) ximian.com

Re: r66020 -trunk/mcs/class/System.Drawing/Test/System.Drawing


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 8 =
QUESTION ON "Development"

EMSDN.COM