public void SlotAttr_OnTestSegLastSlot_ReturnsExpectedAttributeValue() { using (var seg = new PaduakDisposableTestSegment("hello world")) { IntPtr firstSlot = Graphite2Api.SegLastSlot(seg.Seg); Assert.AreEqual(526, Graphite2Api.SlotAttr(firstSlot, seg.Seg, 0, 0)); } }
public void SegLastSlot_OnPaduakTestSegment_ReturnsNonNullSlot() { using (var seg = new PaduakDisposableTestSegment("hello world")) { IntPtr slot = Graphite2Api.SegLastSlot(seg.Seg); Assert.AreNotEqual(IntPtr.Zero, slot); } }