public void ZeroTimeoutMeansInfinite()
 {
     var attrib = new TimeoutAttribute(0);
     Assert.AreEqual(0, attrib.TimeoutSeconds);
     Assert.IsNull(attrib.Timeout);
 }
 public void TimeoutIsEvaluatedInSeconds()
 {
     var attrib = new TimeoutAttribute(120);
     Assert.AreEqual(120, attrib.TimeoutSeconds);
     Assert.AreEqual(TimeSpan.FromSeconds(120), attrib.Timeout);
 }