Ejemplo n.º 1
0
        public void Test_length_relationships(double metersX, double metersY, double metersLength)
        {
            var position = VectorPosition.FromMeters(metersX, metersY);

            position.MetersLength.IsSameOrEqualTo(metersLength);
            position.CentimetersLength.IsSameOrEqualTo(metersLength * 100);
            position.MillimetersLength.IsSameOrEqualTo(metersLength * 1000);
        }
Ejemplo n.º 2
0
        public void Test_reachability(double metersX, double metersY, bool isReachable)
        {
            var position = VectorPosition.FromMeters(metersX, metersY);

            position.IsReachable.Should().Be(isReachable);
        }
Ejemplo n.º 3
0
 public void Test_length_in_meters_correctness(double x, double y, double length)
 {
     VectorPosition.FromMeters(x, y).MetersLength.IsSameOrEqualTo(length);
 }