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 CubeTransitionEffectTransitionDuration() { tlog.Debug(tag, $"CubeTransitionEffectTransitionDuration 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); var result = testingTarget.GetTransitionDuration(); Assert.AreEqual(1.5f, result, "Should be equal!"); testingTarget.Dispose(); tlog.Debug(tag, $"CubeTransitionEffectTransitionDuration END (OK)"); }