ToString() 공개 메소드

public ToString ( ) : string
리턴 string
예제 #1
0
 public void ToStringTest(float x, float y, float width, float height)
 {
     var r = new RectangleF(x, y, width, height);
     Assert.Equal(string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1},Width={2},Height={3}}}", r.X, r.Y, r.Width, r.Height), r.ToString());
 }
예제 #2
0
        public void ToStringTestEmpty(float x, float y, float width, float height)
        {
            var r = new RectangleF(x, y, width, height);

            Assert.Equal("RectangleF [ Empty ]", r.ToString());
        }
예제 #3
0
        public void ToStringTest(float x, float y, float width, float height)
        {
            var r = new RectangleF(x, y, width, height);

            Assert.Equal(string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1},Width={2},Height={3}}}", r.X, r.Y, r.Width, r.Height), r.ToString());
        }
예제 #4
0
        public void ToStringTest()
        {
            var r = new RectangleF(5, 5.1F, 1.3F, 1);

            Assert.Equal(string.Format(CultureInfo.CurrentCulture, "RectangleF [ X={0}, Y={1}, Width={2}, Height={3} ]", r.X, r.Y, r.Width, r.Height), r.ToString());
        }