public void Vector3dApplyWorks() { var v = new Vector3d(1.11, 2.22, 3.33); v.Apply(Math.Round); Assert.True(v.Equivalent(new Vector3d(1, 2, 3))); v.Apply(val => { return(val + 1); }); Assert.True(v.Equivalent(new Vector3d(2, 3, 4))); }