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