public void can_get_magnitude_squared() { var vector = new VectorF(3); vector.Set(0, 3); vector.Set(1, -4); vector.Set(2, 5); var expected = 50.0; var actual = vector.GetMagnitudeSquared(); Assert.Equal(expected, actual); }