Commit Graph
13 Commits
Author SHA1 Message Date
Lluis Sanchez 4a8e55bf69 Fix serialization issue
Fixes BXC 5667 - SerializationException: The object with ID 1 could
not be resolved
2014-02-06 22:01:14 +01:00
Martin Baulig ab016b57c9 [#5935][BinaryFormatter]: Fix serialization of generic arrays. 2012-09-18 21:22:18 +02:00
Rodrigo Kumpera 4bde8caf22 Sparkle some debug friendly love over those serialization test types. 2012-06-06 13:49:49 -03:00
Rodrigo Kumpera a16a6ac042 Rewrite the version tolerant serialization test suite to use app domains instead of processes.
* BinarySerializationOverVersions.cs: Use appdomains as they are much more robust to
	environmental differences. We don't need to ensure we're using the right mono with
	the right mscorlib.
2012-06-06 13:47:35 -03:00
Marek Safar 7478d2e750 Set vts tests environment variables 2012-06-06 15:14:33 +01:00
Marek Safar 3b8b49c90a Fix VersionTolerantSerialization to use active profile 2012-04-19 10:44:58 +01:00
Kyle Ambroff 0dfe460dc6 version tolerant serialization fails with missing primitive members
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.

Added a unit test which passes with the changes to ObjectReader.

Fixes bug #641821.
2011-01-26 18:07:31 -05:00
Andrés G. Aragoneses bbd182a095 [corlib] Prevent BinaryFormatter to throw on missing fields
This commit includes unit tests that were run in MS.NET > 2.0.
The old behaviour of MS.NET 1.1 is still included in the patch
as an ONLY_1_1 define, to be backport-friendly to other branches
(but can be removed from now on in next commits, as mono master
doesn't include this profile anymore). Fixes BNC#324144.
2010-09-22 03:09:17 +08:00
Carlos Alberto Cortez ee8a16c7d0 Add tests for SerializationBinder.BindToName usage with BinaryFormatter.
* BinaryFormatterTest.cs: Add tests for
	SerializationBinder.BindToName usage with BinaryFormatter.
2010-08-30 23:59:37 +02:00
Gert Driesen fafd79e2e5 * BinaryFormatterTest.cs: Added test for inherited fields. Code formatting.
svn path=/trunk/mcs/; revision=92009
2007-12-29 09:36:10 +00:00
Lluis Sanchez 4d0cd599ef 2006-09-06 Lluis Sanchez gual <[email protected]>
* BinaryFormatterTest.cs: Added test for bug #78749 (nested
	IObjectReference objects).


svn path=/trunk/mcs/; revision=64998
2006-09-06 12:08:07 +00:00
Raja R Harinath f0af503273 In System.Runtime.Serialization.Formatters.Binary:
Fix #79159
	* ObjectWriter.cs (WritePrimitiveTypeArray) [NET_2_0]: Encode the
	'Kind' of each DateTime.
	* ObjectReader.cs (ReadArrayOfPrimitiveType) [NET_2_0]: Decode the
	'Kind' of each DateTime.

In Test/System.Runtime.Serialization.Formatters.Binary:
	* BinaryFormatterTest.cs (DateTimeArray): New test for
	round-tripping DateTime arrays.

svn path=/trunk/mcs/; revision=64929
2006-09-05 12:10:14 +00:00
Sebastien Pouliot 50d88f4b9d 2005-12-07 Sebastien Pouliot <[email protected]>
* BinaryFormatterCas.cs: New. Partial CAS tests for BinaryFormatter. 
	Added to test UnsafeDeserialization.
	* BinaryFormatterTest.cs: New. Partial Unit tests for BinaryFormatter.
	Added to test UnsafeDeserialization.

svn path=/trunk/mcs/; revision=54046
2005-12-07 16:29:29 +00:00