public void ConstructorTest2()
        {
            var option = OptionConstructor.WeightedMetrics(4.0f);

            Assert.IsNotNull(option);
            Assert.AreEqual(4.0f, (option.Measure as WeightedMetrics).PNorm);
        }
        public void WeightedMetricsInCollectionTest()
        {
            var o = OptionConstructor.WeightedMetrics("optionwc", _oc);

            Assert.That(o.Measure is WeightedMetrics);
            Assert.That(CrMath.AeqB(((WeightedMetrics)o.Measure).PNorm, 2.0f));
        }
        public void ConstructorTest1()
        {
            var o = OptionConstructor.WeightedMetrics();

            Assert.IsNotNull(o);
            Assert.That(o.Weight, Is.EqualTo(1.0f).Within(Tolerance));
        }
        public void WeightedMetricsTest()
        {
            var o = OptionConstructor.WeightedMetrics();

            Assert.That(o.Measure is WeightedMetrics);
        }
        public void ConstrainedWeightedMetricsInCollectionTest()
        {
            var o = OptionConstructor.ConstrainedWeightedMetrics("cwmo", _oc);

            Assert.That(o.Measure is ConstrainedWeightedMetrics);
        }
        public void ConstrainedChebyshevTest()
        {
            var o = OptionConstructor.ConstrainedChebyshev();

            Assert.That(o.Measure is ConstrainedChebyshev);
        }
        public void ConstrainedChebyshevInCollectionTest()
        {
            var o = OptionConstructor.ConstrainedChebyshev("optconstche", _oc);

            Assert.That(o.Measure is ConstrainedChebyshev);
        }
        public void ChebyshevOptionInCollectionTest()
        {
            var o = OptionConstructor.Chebyshev("optionche", _oc);

            Assert.That(o.Measure is Chebyshev);
        }