public void XTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     float expected = 0F; // TODO: 初始化为适当的值
     float actual;
     target.X = expected;
     actual = target.X;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void Rectangle2DConstructorTest()
 {
     float x = 0F; // TODO: 初始化为适当的值
     float y = 0F; // TODO: 初始化为适当的值
     float width = 0F; // TODO: 初始化为适当的值
     float height = 0F; // TODO: 初始化为适当的值
     Rectangle2D target = new Rectangle2D( x, y, width, height );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
 public void ContainsTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     IPoint2D point2D = null; // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     actual = target.Contains( point2D );
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void Rectangle2DConstructorTest1()
 {
     IPoint2D start = null; // TODO: 初始化为适当的值
     IPoint2D end = null; // TODO: 初始化为适当的值
     Rectangle2D target = new Rectangle2D( start, end );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
 public void ParseTest()
 {
     string value = string.Empty; // TODO: 初始化为适当的值
     Rectangle2D expected = new Rectangle2D(); // TODO: 初始化为适当的值
     Rectangle2D actual;
     actual = Rectangle2D.Parse( value );
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void MakeHoldTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     Rectangle2D rectangle2D = new Rectangle2D(); // TODO: 初始化为适当的值
     target.MakeHold( rectangle2D );
     Assert.Inconclusive( "无法验证不返回值的方法。" );
 }
 public void SetRectangleTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     float x = 0F; // TODO: 初始化为适当的值
     float y = 0F; // TODO: 初始化为适当的值
     float width = 0F; // TODO: 初始化为适当的值
     float height = 0F; // TODO: 初始化为适当的值
     target.SetRectangle( x, y, width, height );
     Assert.Inconclusive( "无法验证不返回值的方法。" );
 }
 public void ToStringTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     string expected = string.Empty; // TODO: 初始化为适当的值
     string actual;
     actual = target.ToString();
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void EndTest()
 {
     Rectangle2D target = new Rectangle2D(); // TODO: 初始化为适当的值
     Point2D expected = new Point2D(); // TODO: 初始化为适当的值
     Point2D actual;
     target.End = expected;
     actual = target.End;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Esempio n. 10
0
        /// <summary>
        /// 与rectangle2D相交
        /// </summary>
        /// <param name="rectangle2D"></param>
        public void MakeHold( Rectangle2D rectangle2D )
        {
            if ( rectangle2D.m_Start.X < m_Start.X )
                m_Start.X = rectangle2D.m_Start.X;

            if ( rectangle2D.m_Start.Y < m_Start.Y )
                m_Start.Y = rectangle2D.m_Start.Y;

            if ( rectangle2D.m_End.X > m_End.X )
                m_End.X = rectangle2D.m_End.X;

            if ( rectangle2D.m_End.Y > m_End.Y )
                m_End.Y = rectangle2D.m_End.Y;
        }
Esempio n. 11
0
 public void ConvertTo3DTest1()
 {
     Rectangle2D rectangle2D = new Rectangle2D(); // TODO: 初始化为适当的值
     Rectangle3D expected = new Rectangle3D(); // TODO: 初始化为适当的值
     Rectangle3D actual;
     actual = Region.ConvertTo3D( rectangle2D );
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }