public void ushortpFrompointer() { tlog.Debug(tag, $"ushortpFrompointer START"); using (ushortp data = new ushortp()) { var testingTarget = ushortp.frompointer(data.cast()); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ushortpFrompointer END (OK)"); }
public void ushortpCast() { tlog.Debug(tag, $"ushortpCast START"); var testingTarget = new ushortp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); var result = testingTarget.cast(); tlog.Debug(tag, "value : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"ushortpCast END (OK)"); }