Example #1
0
        public void TimeoutIsEvaluatedInSeconds()
        {
            var attrib = new DefaultTestCaseTimeoutAttribute(120);

            Assert.AreEqual(120, attrib.TimeoutSeconds);
            Assert.AreEqual(TimeSpan.FromSeconds(120), attrib.Timeout);
        }
Example #2
0
        public void ZeroTimeoutMeansInfinite()
        {
            var attrib = new DefaultTestCaseTimeoutAttribute(0);

            Assert.AreEqual(0, attrib.TimeoutSeconds);
            Assert.IsNull(attrib.Timeout);
        }