private static void AssertTimeoutIs(Timeout expected, string xml) { StubSourceControl sc = new StubSourceControl(null, null); NetReflector.Read(xml, sc); Assert.AreEqual(expected, sc.Timeout); }
public void SettingNullTimeoutSetsItToDefault() { StubSourceControl control = new StubSourceControl(null, null); control.Timeout = null; Assert.AreEqual(Timeout.DefaultTimeout, control.Timeout); }