Beispiel #1
0
        public void MinMaxSumTest()
        {
            OclOrderedSet source = TestUtils.CreateIntOrderedSet(1, 2, 3, 1);

            TestUtils.AreEqual((OclInteger)6, source.sum((OclInteger)0, (x, y) => x + y));
            TestUtils.AreEqual((OclInteger)1, source.min <OclInteger>((x, y) => x.min(y)));
            TestUtils.AreEqual((OclInteger)3, source.max <OclInteger>((x, y) => x.max(y)));
        }