public void Setup() { m_FromStartPoint = new Point(10.0, 10.0); m_FromEndPoint = new Point(60.0, 60.0); m_ToStartPoint = new Point(-10.0, -10.0); m_ToEndPoint = new Point(-60.0, -60.0); m_From = new Line(0, m_FromStartPoint, m_FromEndPoint); m_FromDirection = Constants.LineDirection.Forward; m_To = new Line(1, m_ToStartPoint, m_ToEndPoint); m_ToDirection = Constants.LineDirection.Forward; m_Converter = new LineToLineNodeConverter { From = m_From, FromDirection = m_FromDirection, To = m_To, ToDirection = m_ToDirection }; m_Converter.Convert(); }
public void EqualsReturnsTrueForSameObjectTest() { var other = new LineToLineNodeConverter { From = m_From, FromDirection = m_FromDirection, To = m_To, ToDirection = m_ToDirection }; other.Convert(); Assert.True(m_Converter.Equals(( object ) other)); }