public void Setup()
 {
     func = () => "test 123";
     lazy = LazyFactory <string> .CreateLazySingleThreaded(func);
 }
 public void FuncNullExceptionTest()
 {
     Assert.Throws <FuncNullException>(() => lazy = LazyFactory <string> .CreateLazySingleThreaded(null));
 }
Exemple #3
0
        public void CreateLazySingleThreadedTest()
        {
            lazy = LazyFactory <bool> .CreateLazySingleThreaded(func);

            Assert.IsTrue(lazy != null);
        }