示例#1
0
        public void InitializeForTest_ShouldInitialize()
        {
            var glCalculatorHelper = new GlCalculatorHelper();

            Assert.False(glCalculatorHelper.Initialized());
            glCalculatorHelper.InitializeForTest(GpuResources.Create().ConsumeValueOrDie());
            Assert.True(glCalculatorHelper.Initialized());
        }
示例#2
0
 public void InitializeForTest_ShouldInitialize()
 {
     using (var glCalculatorHelper = new GlCalculatorHelper()) {
         Assert.False(glCalculatorHelper.Initialized());
         glCalculatorHelper.InitializeForTest(GpuResources.Create().Value());
         Assert.True(glCalculatorHelper.Initialized());
     }
 }