Ejemplo n.º 1
0
		void AssertLazyInit(ref LazyInit<int> value)
		{
			Assert.IsFalse(value.IsInitialized, "#1");
			Assert.AreEqual(1, value.Value, "#2");
			//Assert.IsTrue(value.IsInitialized, "#3");
			Assert.AreEqual(value, value, "#4");
			Assert.AreEqual(1.ToString(), value.ToString(), "#5");
			Assert.AreEqual(1.GetHashCode(), value.GetHashCode(), "#6");
			Assert.AreEqual(1, nTime, "#7");
		}
Ejemplo n.º 2
0
 void AssertLazyInit(ref LazyInit <int> value)
 {
     Assert.IsFalse(value.IsInitialized, "#1");
     Assert.AreEqual(1, value.Value, "#2");
     //Assert.IsTrue(value.IsInitialized, "#3");
     Assert.AreEqual(value, value, "#4");
     Assert.AreEqual(1.ToString(), value.ToString(), "#5");
     Assert.AreEqual(1.GetHashCode(), value.GetHashCode(), "#6");
     Assert.AreEqual(1, nTime, "#7");
 }