コード例 #1
0
        public void testConstructorEmptyIterator()
        {
            // Testing that the TimeGrid constructor raises an error for empty iterators

            List <double> times = new List <double>();

            QAssert.ThrowsException <ArgumentException>(() => new TimeGrid(times));
        }
コード例 #2
0
        public void testConstructorNegativeValuesInIterator()
        {
            // Testing that the TimeGrid constructor raises an error for negative time values
            List <double> times = new List <double> {
                -3.0, 1.0, 4.0, 5.0
            };

            QAssert.ThrowsException <ArgumentException>(() => new TimeGrid(times));
        }