public void Uint16PairConstructor() { tlog.Debug(tag, $"Uint16PairConstructor START"); using (Uint16Pair data = new Uint16Pair(1, 2)) { var testingTarget = new Uint16Pair(data); Assert.IsNotNull(testingTarget, "Can't create success object Uint16Pair"); Assert.IsInstanceOf <Uint16Pair>(testingTarget, "Should be an instance of Uint16Pair type."); testingTarget.Dispose(); } tlog.Debug(tag, $"Uint16PairConstructor END (OK)"); }
public void Uint16PairGreaterThan() { tlog.Debug(tag, $"Uint16PairGreaterThan START"); var testingTarget = new Uint16Pair(1, 2); Assert.IsNotNull(testingTarget, "Can't create success object Uint16Pair"); Assert.IsInstanceOf <Uint16Pair>(testingTarget, "Should be an instance of Uint16Pair type."); using (Uint16Pair obj = new Uint16Pair(1, 0)) { var result = testingTarget > obj; tlog.Debug(tag, result.ToString()); } testingTarget.Dispose(); tlog.Debug(tag, $"Uint16PairGreaterThan END (OK)"); }
public void Uint16PairSetHeight() { tlog.Debug(tag, $"Uint16PairSetHeight START"); var testingTarget = new Uint16Pair(1, 2); Assert.IsNotNull(testingTarget, "Can't create success object Uint16Pair"); Assert.IsInstanceOf <Uint16Pair>(testingTarget, "Should be an instance of Uint16Pair type."); try { testingTarget.SetHeight(1); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"Uint16PairSetHeight END (OK)"); }