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