public void simple_forward_calls_return_nonzero_result()
        {
            var fs = new NurbsForwardSolver();
            var op = new OpticalProperties();

            var value1 = fs.ROfRho(op, 10);

            Assert.IsTrue(value1 > 0);

            var value2 = fs.ROfFx(op, 0.1);

            Assert.IsTrue(value2 > 0);
        }
        public void array_forward_calls_return_nonzero_result()
        {
            var fs   = new NurbsForwardSolver();
            var ops  = new[] { new OpticalProperties() };
            var rhos = new[] { 10.0 };
            var fxs  = new[] { 0.1 };

            var value1 = fs.ROfRho(ops, rhos);

            Assert.IsTrue(value1[0] > 0);

            var value2 = fs.ROfFx(ops, fxs);

            Assert.IsTrue(value2[0] > 0);
        }
        public void enumerable_forward_calls_return_nonzero_result()
        {
            var fs   = new NurbsForwardSolver();
            var ops  = new OpticalProperties().AsEnumerable();
            var rhos = 10D.AsEnumerable();
            var fxs  = 0.1.AsEnumerable();

            var value1 = fs.ROfRho(ops, rhos).First();

            Assert.IsTrue(value1 > 0);

            var value2 = fs.ROfFx(ops, fxs).First();

            Assert.IsTrue(value2 > 0);
        }