public void ReadEmpty() { byte[] streamData = new byte[0]; WangAnnotationHandlerTest handler = new WangAnnotationHandlerTest(); Assert.IsFalse(WangAnnotationsReader.Read(handler, streamData)); }
public void ReadInvalidDataSizeForBlock() { byte[] streamData = { // Header 0, 0, 0, 0, 0, 0, 0, 0, // Data type 2, 0, 0, 0, // Data Size, 200, 0, 0, 0, // Trailing stuff 1, 2, 3, 4 }; WangAnnotationHandlerTest handler = new WangAnnotationHandlerTest(); Assert.IsFalse(WangAnnotationsReader.Read(handler, streamData)); }