コード例 #1
0
        private static void AssertTimeoutIs(Timeout expected, string xml)
        {
            StubSourceControl sc = new StubSourceControl(null, null);

            NetReflector.Read(xml, sc);
            Assert.AreEqual(expected, sc.Timeout);
        }
コード例 #2
0
        public void SettingNullTimeoutSetsItToDefault()
        {
            StubSourceControl control = new StubSourceControl(null, null);

            control.Timeout = null;
            Assert.AreEqual(Timeout.DefaultTimeout, control.Timeout);
        }
コード例 #3
0
		private static void AssertTimeoutIs(Timeout expected, string xml)
		{
			StubSourceControl sc = new StubSourceControl(null, null);
			NetReflector.Read(xml, sc);
			Assert.AreEqual(expected, sc.Timeout);
		}
コード例 #4
0
		public void SettingNullTimeoutSetsItToDefault()
		{
			StubSourceControl control = new StubSourceControl(null, null);
			control.Timeout = null;
			Assert.AreEqual(Timeout.DefaultTimeout, control.Timeout);
		}