public void magnitude() { var s = new Segment2(new Point2(1, 2), new Vector2(3, 4)); Assert.Equal(Math.Sqrt(9 + 16), s.GetMagnitude()); }