public void LinearConstrainerProgress() { tlog.Debug(tag, $"LinearConstrainerProgress START"); var testingTarget = new LinearConstrainer(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!"); try { using (PropertyArray arr = new PropertyArray()) { arr.PushBack(new PropertyValue(0.3f)); testingTarget.Progress = arr; tlog.Debug(tag, "Progress : " + testingTarget.Progress); } } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"LinearConstrainerProgress END (OK)"); }
public void LinearConstrainerRemove() { tlog.Debug(tag, $"LinearConstrainerRemove START"); var testingTarget = new LinearConstrainer(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!"); try { using (Animatable ani = new Animatable()) { testingTarget.Remove(ani); } } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"LinearConstrainerRemove END (OK)"); }
public void LinearConstrainerConstructor() { tlog.Debug(tag, $"LinearConstrainerConstructor START"); var testingTarget = new LinearConstrainer(); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"LinearConstrainerConstructor END (OK)"); }
public void LinearConstrainerConstructorWithLinearConstrainer() { tlog.Debug(tag, $"LinearConstrainerConstructorWithLinearConstrainer START"); using (LinearConstrainer constrainer = new LinearConstrainer()) { var testingTarget = new LinearConstrainer(constrainer); Assert.IsInstanceOf <LinearConstrainer>(testingTarget, "should be an instance of testing target class!"); testingTarget?.Dispose(); } tlog.Debug(tag, $"LinearConstrainerConstructorWithLinearConstrainer END (OK)"); }