Esempio n. 1
0
        public void CheckvaluesTest()
        {
            Zad1.Zad1 o = new Zad1.Zad1();
            double    a = 2.0, b = 4.0, c = 6.0;

            Assert.IsFalse(o.CheckValues(a, b, c));
            Assert.IsFalse(o.CheckValues(b, a, c));
            Assert.IsFalse(o.CheckValues(c, a, b));
            Assert.IsFalse(o.CheckValues(b, c, a));
            Assert.IsFalse(o.CheckValues(a, c, b));
            Assert.IsFalse(o.CheckValues(c, b, a));
        }
Esempio n. 2
0
        public void CheckValuesTest2()
        {
            Zad1.Zad1 o  = new Zad1.Zad1();
            double    _a = 5.0;
            double    _b = 5.0;
            double    _c = 1.0;

            Assert.IsTrue(o.CheckValues(_a, _b, _c));
            Assert.IsTrue(o.CheckValues(_b, _a, _c));
            Assert.IsTrue(o.CheckValues(_c, _a, _b));
            Assert.IsTrue(o.CheckValues(_b, _c, _a));
            Assert.IsTrue(o.CheckValues(_a, _c, _b));
            Assert.IsTrue(o.CheckValues(_c, _b, _a));
        }