Пример #1
0
        public void LeftShoulder_RepresentativeValue()
        {
            double mid = 10;
            double end = 20;

            Set set = new LeftShoulderSet(mid, end);

            Assert.AreEqual(set.RepresentativeValue, 5);
        }
Пример #2
0
        public void LeftShoulder_CalculateDOM_CrispValue_EqualToMid()
        {
            double mid        = 10;
            double end        = 20;
            double crispValue = mid;

            Set set = new LeftShoulderSet(mid, end);

            Assert.AreEqual(set.CalculateDOM(crispValue), 1);
        }
Пример #3
0
        public void LeftShoulder_CalculateDOM_CrispValue_GreaterThanMid()
        {
            double mid        = 10;
            double end        = 20;
            double crispValue = 15;

            Set set = new LeftShoulderSet(mid, end);

            Assert.AreEqual(set.CalculateDOM(crispValue), 0.5);

            crispValue = end;
            Assert.AreEqual(set.CalculateDOM(crispValue), 0);

            crispValue = end + 10;
            Assert.AreEqual(set.CalculateDOM(crispValue), 0);
        }