public void Merge_5()
        {
            var msf1 = new MembershipFunction{ { 1, 0 }, { 2, 1 }, { 3, 0 } };
            var msf2 = new MembershipFunction{ { 0, 0 }, { 2, 1 }, { 4, 0 } };

            var expected = new MembershipFunction{ { 0, 0 }, { 2, 1 }, { 4, 0 } };

            var sut = new MaxMsfMergingStrategy();
            var result = sut.Apply(new[] { msf1, msf2 });

            Assert.AreEqual(expected, result);
        }
        public void Merge_7()
        {
            var expected = new MembershipFunction();

            var sut = new MaxMsfMergingStrategy();
            var result = sut.Apply(new MembershipFunction[] {});

            Assert.AreEqual(expected, result);
        }
        public void ToStringTest()
        {
            var sut = new MaxMsfMergingStrategy();

            Assert.AreEqual("Maximum Msf Merge", sut.ToString());
        }
        public void Merge_9()
        {
            var msf1 = new MembershipFunction { { -1, 1 }, { 0, 0 }};
            var msf2 = new MembershipFunction { { -1, 0 }, { -0.75, 0.25 }, { 0.75, 0.25 }, { 1, 0 } };

            var expected = new MembershipFunction { { -1, 1 }, { -0.25, 0.25 }, { 0.75, 0.25 }, { 1, 0 } };

            var sut = new MaxMsfMergingStrategy();
            var result = sut.Apply(new[] { msf1, msf2 });
            Assert.AreEqual(expected, result);
            result = sut.Apply(new[] { msf2, msf1 });
            Assert.AreEqual(expected, result);
        }