public void CubeTransitionEffectStartTransition() { tlog.Debug(tag, $"CubeTransitionEffectStartTransition START"); var testingTarget = new CubeTransitionWaveEffect(20, 10); Assert.IsNotNull(testingTarget, "Can't create success object CubeTransitionEffect"); Assert.IsInstanceOf <CubeTransitionEffect>(testingTarget, "Should be an instance of CubeTransitionEffect type."); testingTarget.SetTransitionDuration(1.5f); testingTarget.SetCurrentTexture(LoadStageFillingTexture(currentpath)); testingTarget.SetTargetTexture(LoadStageFillingTexture(targetpath)); try { testingTarget.StartTransition(true); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget?.Dispose(); tlog.Debug(tag, $"CubeTransitionEffectStartTransition END (OK)"); }
public void CubeTransitionWaveEffectConstructor() { tlog.Debug(tag, $"CubeTransitionWaveEffectConstructor START"); var testingTarget = new CubeTransitionWaveEffect(20, 10); Assert.IsNotNull(testingTarget, "Can't create success object CubeTransitionEffect"); Assert.IsInstanceOf <CubeTransitionEffect>(testingTarget, "Should be an instance of CubeTransitionEffect type."); testingTarget.Dispose(); tlog.Debug(tag, $"CubeTransitionWaveEffectConstructor END (OK)"); }
public void CubeTransitionEffectIsTransitioning() { tlog.Debug(tag, $"CubeTransitionEffectIsTransitioning START"); var testingTarget = new CubeTransitionWaveEffect(20, 10); Assert.IsNotNull(testingTarget, "Can't create success object CubeTransitionEffect"); Assert.IsInstanceOf <CubeTransitionEffect>(testingTarget, "Should be an instance of CubeTransitionEffect type."); var result = testingTarget.IsTransitioning(); Assert.AreEqual(false, result, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"CubeTransitionEffectIsTransitioning END (OK)"); }
public void CubeTransitionEffectTransitionCompleted() { tlog.Debug(tag, $"CubeTransitionEffectTransitionCompleted START"); var testingTarget = new CubeTransitionWaveEffect(20, 10); Assert.IsNotNull(testingTarget, "Can't create success object CubeTransitionEffect"); Assert.IsInstanceOf <CubeTransitionEffect>(testingTarget, "Should be an instance of CubeTransitionEffect type."); try { testingTarget.TransitionCompleted += OnCubeEffectCompleted; testingTarget.TransitionCompleted -= OnCubeEffectCompleted; } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"CubeTransitionEffectTransitionCompleted END (OK)"); }