public void BeforeEachTest() { var bytes = EmbeddedResource.Read("AssertionException.bin"); _stream = new MemoryStream(bytes); _segment = new BinarySerializationExternalVariableLengthObjectSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x0A, 0x09, 0x05, 0x00, 0x00, 0x00 }; _stream = new MemoryStream(bytes); _segment = new BinarySerializationObjectReferenceSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C }; _stream = new MemoryStream(bytes); _segment = new BinarySerializationHeaderSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x0A, 0x06 }; _stream = new MemoryStream(bytes); _segment = new BinarySerializationEndVariableLengthObjectSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x08, 0x08, 0x02 }; _stream = new MemoryStream(bytes); _segment = new BinarySerializationBoxedPrimitiveSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x09, 0x01 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationObjectReferenceSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x0C, 0x02 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationAssemblyInfoSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x0A, 0x06 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationEndVariableLengthObjectSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x06, 0x05, 0x04, 0x01 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationPartialExceptionClassSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x08, 0x08, 0x02 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationBoxedPrimitiveSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x02, 0x20 }; _stream = new MemoryStream(bytes) { Position = 0 }; _segment = new BinarySerializationExternalVariableLengthObjectSegment(); }
public void BeforeEachTest() { byte[] bytes = { 0x0C, 0x02, 0x00, 0x00, 0x00, 0x43, 0x46, 0x6C, 0x75, 0x65, 0x6E, 0x74, 0x41, 0x73, 0x73, 0x65, 0x72, 0x74, 0x2C, 0x20, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x31, 0x2E, 0x30, 0x2E, 0x30, 0x2E, 0x30, 0x2C, 0x20, 0x43, 0x75, 0x6C, 0x74, 0x75, 0x72, 0x65, 0x3D, 0x6E, 0x65, 0x75, 0x74, 0x72, 0x61, 0x6C, 0x2C, 0x20, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x63, 0x4B, 0x65, 0x79, 0x54, 0x6F, 0x6B, 0x65, 0x6E, 0x3D, 0x6E, 0x75, 0x6C, 0x6C, 0x05 }; _stream = new MemoryStream(bytes); _segment = new BinarySerializationAssemblyInfoSegment(); }
public void BeforeEachTest() { _segment = new BinarySerializationVariableLengthObjectSegment(); }
public BinarySerializationSegment(byte typeId, IBinarySerializationSegment handler) { TypeId = typeId; Handler = handler; Values.Add(typeId, handler); }