Skip to content

Commit 3c75cf4

Browse files
committed
Remove experimental code.
1 parent bd60b74 commit 3c75cf4

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

test/MsgPack.UnitTest/Serialization/RegressionTests.cs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -253,51 +253,5 @@ protected internal override TestValueTypeWrapper UnpackFromCore( Unpacker unpack
253253
return new TestValueTypeWrapper { Value = this._serializer0.UnpackFrom( unpacker ) };
254254
}
255255
}
256-
257-
[Test]
258-
public void TestIssue135()
259-
{
260-
var context = new SerializationContext
261-
{
262-
SerializationMethod = SerializationMethod.Map,
263-
EnumSerializationMethod = EnumSerializationMethod.ByName,
264-
CompatibilityOptions =
265-
{
266-
PackerCompatibilityOptions = PackerCompatibilityOptions.None
267-
}
268-
};
269-
var serializer = context.GetSerializer<Issue135>();
270-
271-
var dict = new Dictionary<string, object>();
272-
dict[ "A" ] = "x";
273-
274-
var body = new byte[] { 0x81, 0xA1, ( byte ) 'A', 0xA1, ( byte ) 'x' };
275-
276-
using ( var stream = new MemoryStream( body ) )
277-
{
278-
var result = serializer.Unpack( stream );
279-
Assert.That( result.A, Is.EqualTo( "x" ) );
280-
Assert.That( result.B, Is.EqualTo( 0 ) );
281-
}
282-
}
283-
}
284-
285-
public class Issue135
286-
{
287-
private const NilImplication NI = NilImplication.Prohibit;
288-
289-
private readonly string _a;
290-
private readonly int _b;
291-
292-
[MessagePackMember( 0, NilImplication = NI )]
293-
public string A {get { return this._a; }}
294-
[MessagePackMember( 1, NilImplication = NI )]
295-
public int B { get { return this._b; } }
296-
297-
public Issue135( string a, int b )
298-
{
299-
this._a = a;
300-
this._b = b;
301-
}
302256
}
303257
}

0 commit comments

Comments
 (0)