You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -1,125 +0,0 @@
|
||||
2010-07-06 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : add test for bug #615800.
|
||||
|
||||
2010-07-06 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : add test for bug #615801.
|
||||
|
||||
2010-04-05 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : don't use ToUniversalTime()
|
||||
which makes test results timezone dependent.
|
||||
|
||||
2010-03-10 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : oops, the test was careless.
|
||||
Use fixed date.
|
||||
|
||||
2010-03-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : add test for bug #586169.
|
||||
* JsonWriterTest.cs : add standalone write case for "\/".
|
||||
|
||||
2010-01-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs :
|
||||
enable TypeIsNotPartsOfKnownTypes(), and add more related tests.
|
||||
|
||||
2010-01-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : make some tests narrow down
|
||||
possible cause of errors to detect expected errors more precisely.
|
||||
|
||||
2010-01-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : null-string case is working.
|
||||
|
||||
2010-01-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : invalidate previous non-working
|
||||
tests.
|
||||
|
||||
2010-01-25 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs: Add non-working test cases
|
||||
for null-string, known types and handling floating point special
|
||||
values
|
||||
|
||||
2009-12-11 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs: add a test case for
|
||||
non-public properties.
|
||||
|
||||
2009-12-11 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* JsonReaderTest.cs : another number parse case.
|
||||
|
||||
2009-11-20 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : added ignored test case that
|
||||
verifies 2.1 behavior (with another case that justifies removal
|
||||
of the previous hack).
|
||||
|
||||
2009-10-08 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : added test for
|
||||
alwaysEmitTypeInformation argument.
|
||||
|
||||
2009-09-07 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : fix non-datacontract
|
||||
serialization test. It depended on IPAddress field internals
|
||||
(runtime serialization incompatibility).
|
||||
|
||||
2009-03-13 Andreia Gaita <avidigal@novell.com>
|
||||
|
||||
* JsonReaderTest.cs: test for skip and depth (if depth fails, skip is affected)
|
||||
|
||||
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : fixed some tests to match
|
||||
.NET RTM behavior. Added read-only collection case, (but [Ignore]d).
|
||||
|
||||
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : added test for contract-less
|
||||
serialization.
|
||||
|
||||
2008-02-18 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : added couple of DBNull tests.
|
||||
|
||||
2008-01-30 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : added deserialization tests
|
||||
for typed object with "__type".
|
||||
|
||||
2008-01-30 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* JsonReaderTest.cs : test GetAttribute() for "__type".
|
||||
|
||||
2008-01-30 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* JsonReaderTest.cs : added tests for "__type" attributes (some of
|
||||
them are not working yet).
|
||||
|
||||
2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* JsonReaderTest.cs : test "type" attribute in several nodes.
|
||||
|
||||
2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs : some more deserialization tests.
|
||||
|
||||
2008-01-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* JsonWriterTest.cs : added test for writing __type attribute.
|
||||
* DataContractJsonSerializerTest.cs : added more random-ish tests.
|
||||
|
||||
2007-12-05 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* DataContractJsonSerializerTest.cs :
|
||||
moved from Test/System.Runtime.Serialization and fixed some.
|
||||
* JsonReaderTest.cs, JsonWriterTest.cs : moved from Test/System.Xml.
|
||||
|
||||
@@ -1,332 +0,0 @@
|
||||
2010-06-02 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : enable binary reader test for #601785.
|
||||
|
||||
2010-06-01 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for bug #601785, based on
|
||||
the test by Raja Harinath.
|
||||
|
||||
2010-05-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.
|
||||
|
||||
2010-05-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : add test for bug #610036.
|
||||
|
||||
2010-04-28 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : add test for bug #599899.
|
||||
|
||||
2010-03-04 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for empty array deserialization.
|
||||
|
||||
2010-03-01 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractExporterTest.cs : remove [NotWorking].
|
||||
|
||||
2010-02-19 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs : added Dictionary export tests.
|
||||
|
||||
2010-02-18 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs : enabled new tests.
|
||||
|
||||
2010-02-17 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs : added a bunch of tests for new
|
||||
implementation. Disable yet.
|
||||
|
||||
2010-02-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs : add test that it gives
|
||||
appropriate code namespaces.
|
||||
|
||||
2010-02-08 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs : add test that ArrayOfxxx type
|
||||
is not added.
|
||||
|
||||
2010-01-25 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for bug #560155.
|
||||
|
||||
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for bug #568763.
|
||||
|
||||
2009-09-28 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XsdDataContractExporterTest.cs : disable some tests that started
|
||||
to fail due to correctly sorted fields while xsd exporter has
|
||||
some bugs that emits duplicate fields (hence ambiguity occurs).
|
||||
|
||||
2009-09-28 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : Test nested type serialization type
|
||||
initialization.
|
||||
|
||||
2009-09-07 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : fix (here too) bad serialization-
|
||||
compatibility-dependent test.
|
||||
|
||||
2009-09-07 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : fixed wrong EOLs that resulted in
|
||||
failure in .NET.
|
||||
* XsdDataContractExporterTest.cs : fix test that failed on .NET,
|
||||
and marked as NotWorking (no proceeding wsdl work yet).
|
||||
|
||||
2009-09-04 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : add test for [IgnoreDataMember].
|
||||
|
||||
2009-07-23 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: Add test cases with a generic
|
||||
dictionary (empty, broken with r138386, and with one element)
|
||||
that both works on MS.NET and for which Moonlight depends on.
|
||||
|
||||
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs :
|
||||
Add test for bug #524086 by Rolf Bjarne Kvinge.
|
||||
Add enum flags test, which should not raise an error.
|
||||
|
||||
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : add test for bug #524083, by
|
||||
Rolf Bjarne Kvinge.
|
||||
|
||||
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : now we can make xml indented as
|
||||
originally done in #524088.
|
||||
|
||||
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for bug #524088 by
|
||||
Rolf Bjarne Kvinge (a bit modified).
|
||||
|
||||
2009-06-01 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : enable interface collection test and
|
||||
add some more test lines.
|
||||
|
||||
2009-05-14 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added serialization test for
|
||||
interface collection.
|
||||
|
||||
2009-03-12 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for dictionary with
|
||||
CollectionDataContractAttribute.
|
||||
|
||||
2009-03-12 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added tests for IDictionary
|
||||
serialization (both generic and non-generic).
|
||||
|
||||
2009-03-11 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for generic IList of
|
||||
DictionaryEntry. (no Hashtable serialization yet.)
|
||||
|
||||
2009-03-11 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
|
||||
(it is still different from full IDictionary support...!).
|
||||
|
||||
2009-03-11 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for generic IList serialization.
|
||||
|
||||
2009-03-10 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for generic type serialization.
|
||||
|
||||
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : fixed non-contract serialization
|
||||
tests and remove some NotWorking.
|
||||
|
||||
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : fixed collection contract test and
|
||||
added some notes.
|
||||
|
||||
2009-02-13 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added couple of test fixes in
|
||||
collection serialization tests.
|
||||
|
||||
2008-11-23 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for IsReference = true.
|
||||
|
||||
2008-04-17 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: Add test for base class with a different XML
|
||||
namespace then its derived class.
|
||||
Add tests for derserialization of arrays.
|
||||
|
||||
2008-04-14 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: DataContract types don't need anymore an empty
|
||||
ctor.
|
||||
|
||||
2008-04-10 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: Add test scenarios for testing serialization
|
||||
and deserialization of more complex types, namespace support, etc.
|
||||
|
||||
2008-04-03 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* DataContractSerializerTest_FrameworkTypes_mscorlib.cs:
|
||||
* DataContractSerializerTest_FrameworkTypes_System.cs:
|
||||
* DataContractSerializerTest_FrameworkTypes_System.Data.cs:
|
||||
* XmlObjectSerializerTest.cs:
|
||||
add NotWorking attribute.
|
||||
|
||||
2008-03-31 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* DataContractSerializerTest_FrameworkTypes_System.Data.cs: new testfixture.
|
||||
|
||||
2008-03-31 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* DataContractSerializerTest_FrameworkTypes_System.cs: new testfixture.
|
||||
|
||||
2008-03-31 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* DataContractSerializerTest_FrameworkTypes.cs: refactoring.
|
||||
* DataContractSerializerTest_FrameworkTypes_mscorlib.cs: new testfixture.
|
||||
|
||||
2008-03-31 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* DataContractSerializerTest_FrameworkTypes.cs:
|
||||
add infrastructure for following tests.
|
||||
|
||||
2008-03-30 Igor Zelmanovich <igorz@mainsoft.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: use XmlComparer, remove NotWorking.
|
||||
|
||||
2008-02-27 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: Added tests for Read/WriteObject
|
||||
* AttributesTest.cs: Added tests for new Serialization attributes.
|
||||
* XsdDataContractImporterTest.cs: Added null arguments tests to the
|
||||
Import methods. marked ImportTest as not working.
|
||||
|
||||
2008-02-27 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* one.xml: Indentation change
|
||||
|
||||
2007-12-05 Atsushi Enomoto <atushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : test for .ctor() with null knownTypes.
|
||||
|
||||
2007-11-27 Atsushi Enomoto <atushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs, XsdDataContractImporterTest.cs:
|
||||
couple of tests are not working now.
|
||||
|
||||
2007-08-17 Atsushi Enomoto <atushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for ReadObject() with
|
||||
verifyObjectData = false.
|
||||
|
||||
2007-07-27 Atsushi Enomoto <atushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for serializing IPAddress
|
||||
(will be required for RegisterInfo).
|
||||
|
||||
2007-07-26 Atsushi Enomoto <atushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added Guid serialization test.
|
||||
|
||||
2006-09-05 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* XsdDataContractImporterTest.cs (PrimitiveType): Add a check for number
|
||||
of schemas.
|
||||
|
||||
2006-09-04 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* XsdDataContractExporterTest.cs (Ctor1): Remove 'NotWorking'.
|
||||
(PrimitiveType): New.
|
||||
(CanExportTest): New.
|
||||
(GetSchemaTypeTest): New.
|
||||
(Test2): Ensure that exception is "expected" from the second Export.
|
||||
|
||||
2006-09-01 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* XsdDataContractExporterTest.cs: New.
|
||||
* XmlObjectSerializerTest.cs: New tests for serializing arrays.
|
||||
|
||||
2006-08-31 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs: Add tests for serializing/deserializing
|
||||
enums.
|
||||
|
||||
2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added non-setter collection case.
|
||||
(I was just curious how DataContractSerializer is useless here.)
|
||||
|
||||
2006-07-27 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* one.xml: New. Used by XsdDataContractImporterTest.cs
|
||||
* XsdDataContractImporterTest.cs: New.
|
||||
|
||||
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : the previous test is working now.
|
||||
|
||||
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : finally I found out why non-
|
||||
datacontract .ctor() does not fail while SerializeNonDC() fails.
|
||||
|
||||
2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added more .ctor() tests.
|
||||
|
||||
2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs :
|
||||
Added test for nested class serialization.
|
||||
|
||||
2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added some .ctor() tests.
|
||||
|
||||
2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for string serialization.
|
||||
QName as well but [Ignore] right now.
|
||||
|
||||
2006-03-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added test for WriteObjectContent()
|
||||
without WriteStartObject().
|
||||
|
||||
2006-03-08 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs (SerializeDCWithName):
|
||||
(SerializeDCWithEmptyName1):
|
||||
(SerializeDCWithEmptyName2):
|
||||
(SerializeDCWithNullName):
|
||||
(SerializeDCWithEmptyNamespace1): New serialization tests.
|
||||
|
||||
2006-03-03 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : added more serialization tests.
|
||||
|
||||
2006-03-02 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlObjectSerializerTest.cs : new file for serialization tests.
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
//
|
||||
// Exceptions
|
||||
//
|
||||
// Authors:
|
||||
// Andi McClure (andi.mcclure@xamarin.com)
|
||||
//
|
||||
// Copyright 2016 Xamarin Inc. (http://www.xamarin.com)
|
||||
//
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace MonoTests.System.Runtime.Serialization
|
||||
{
|
||||
[TestFixture]
|
||||
public class Exceptions
|
||||
{
|
||||
[Serializable]
|
||||
public class SerializableException : Exception
|
||||
{
|
||||
public string Data;
|
||||
|
||||
public SerializableException (string data) {
|
||||
Data = data;
|
||||
|
||||
SerializeObjectState += HandleSerialization;
|
||||
}
|
||||
|
||||
private static void HandleSerialization (object exception, SafeSerializationEventArgs eventArgs) {
|
||||
eventArgs.AddSerializedState (new SerializableExceptionState (exception));
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
private class SerializableExceptionState : ISafeSerializationData {
|
||||
private string Data;
|
||||
|
||||
public SerializableExceptionState (object _exception) {
|
||||
SerializableException exception = (SerializableException)_exception;
|
||||
|
||||
Data = exception.Data;
|
||||
}
|
||||
|
||||
public void CompleteDeserialization (object _exception) {
|
||||
SerializableException exception = (SerializableException)_exception;
|
||||
exception.SerializeObjectState += HandleSerialization;
|
||||
|
||||
exception.Data = Data;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Effectively tests SerializeObjectState handler support on System.Exception
|
||||
[Test]
|
||||
public void Exception_SerializeObjectState () {
|
||||
SerializableException exception = new SerializableException ("success");
|
||||
SerializableException deserializedException;
|
||||
BinaryFormatter binaryFormatter = new BinaryFormatter ();
|
||||
|
||||
using (MemoryStream memoryStream = new MemoryStream ())
|
||||
{
|
||||
binaryFormatter.Serialize (memoryStream, exception);
|
||||
memoryStream.Flush ();
|
||||
|
||||
memoryStream.Seek (0, SeekOrigin.Begin);
|
||||
|
||||
deserializedException = (SerializableException)binaryFormatter.Deserialize (memoryStream);
|
||||
}
|
||||
|
||||
Assert.AreEqual ("success", deserializedException.Data);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,240 +0,0 @@
|
||||
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
|
||||
than two nodes in an element.
|
||||
|
||||
2009-06-05 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : verify that end element has
|
||||
non-empty local name.
|
||||
|
||||
2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
|
||||
namespace declaration in the same element context.
|
||||
|
||||
2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : added test for writing xml/xmlns
|
||||
attributes with null namespace.
|
||||
|
||||
2009-05-19 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.
|
||||
|
||||
2009-05-14 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryWriterSession.cs : added test to verify that session is
|
||||
actually used in binary dictionary writer.
|
||||
|
||||
2009-04-02 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlMtomDictionaryWriterTest.cs : new.
|
||||
|
||||
2009-03-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
|
||||
state.
|
||||
|
||||
2009-03-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs: test array reader.
|
||||
|
||||
2009-03-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : added test for array operation.
|
||||
|
||||
2009-03-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs,
|
||||
XmlBinaryDictionaryWriterTest.cs : added test for element with
|
||||
short prefix.
|
||||
|
||||
2009-03-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : enabled QName test parts.
|
||||
|
||||
2009-03-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
|
||||
prefixed attributes.
|
||||
|
||||
2009-03-26 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
|
||||
disable since it does not work yet.
|
||||
|
||||
2009-03-25 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : enable reader-session dependent
|
||||
tests.
|
||||
* XmlBinaryDictionaryReaderTest.cs : enable dummy-prefixed attributes
|
||||
tests.
|
||||
|
||||
2009-02-13 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* UniqueIdTest.cs: Add tests for all members.
|
||||
|
||||
2009-02-13 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* XmlDictionaryWriterTest.cs: Test WriteValue(IStreamProvider).
|
||||
|
||||
2009-02-13 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* XmlDictionaryWriterTest.cs: Test WriteNode(XmlDictionaryReader),
|
||||
WriteNode(XmlReader), and WriteTextNode().
|
||||
|
||||
2009-02-12 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* XmlDictionaryWriterTest.cs: Test WriteValue(Guid),
|
||||
WriteValue(TimeSpan), WriteValue(UniqueId).
|
||||
|
||||
2009-02-12 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* XmlDictionaryWriterTest.cs: Added; test
|
||||
XmlDictionaryWriter.WriteElementString().
|
||||
|
||||
2009-02-11 Jonathan Pryor <jpryor@novell.com>
|
||||
|
||||
* XmlDictionaryStringTest.cs: Added; tests for XmlDictionaryString.
|
||||
|
||||
2008-04-10 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs: Tested binary writer WriteXmlnsAttributa
|
||||
with a null prefix.
|
||||
|
||||
2008-03-22 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : it contained bogus multibyte
|
||||
characters, so replaced them with \uXXXX.
|
||||
Removed some NotWorking and FIXMEs.
|
||||
|
||||
2008-02-27 Eyal Alaluf <eyala@mainsoft.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs: UseCase1 test fails also on .Net
|
||||
|
||||
2007-11-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : added [NotWorking]
|
||||
|
||||
2007-07-27 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlSimpleDictionaryWriterTest.cs : added test for null prefix case.
|
||||
|
||||
2007-03-30 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs : check if it reads nodes
|
||||
correctly, by comparing direct output to binary writer.
|
||||
|
||||
2007-03-19 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : more WriteValue() cases.
|
||||
|
||||
2007-03-16 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryReaderTest.cs :
|
||||
ok, now we have pretty simple imports from writer tests so far.
|
||||
|
||||
2007-03-16 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs :
|
||||
WriteValue(Decimal) is working now.
|
||||
|
||||
2007-03-15 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : added test for typed values.
|
||||
|
||||
2007-03-15 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : removed debug code (UseCase2).
|
||||
|
||||
2007-03-15 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : more code comments.
|
||||
|
||||
2007-03-15 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : a few code comments and
|
||||
XmlDictionaryString.Key value test.
|
||||
|
||||
2007-03-15 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : added more attribute tests.
|
||||
Reduced extra dictionary creation.
|
||||
|
||||
2007-03-14 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderQuotasTest.cs : fixed test class name.
|
||||
* XmlBinaryDictionaryWriterTest.cs : added a bunch of tests. Many
|
||||
tests still fail. They are going to be fixed.
|
||||
* XmlBinaryWriterSessionTest.cs : new test.
|
||||
|
||||
2007-03-14 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryTest.cs : removed pointless test-breaking return.
|
||||
Added test for Add() and key index. Added test for Empty.
|
||||
* XmlSimpleDictionaryWriterTest.cs : in .NET 3.0 RTM processing
|
||||
instructions are supported.
|
||||
|
||||
2007-03-09 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderAbstractTest.cs : added array reader tests.
|
||||
* XmlSimpleDictionaryWriterTest.cs : added WriteBooleanArray().
|
||||
|
||||
2006-07-31 Ankit Jain <jankit@novell.com>
|
||||
|
||||
* UniqueIdTest.cs: Add new tests.
|
||||
|
||||
2006-07-31 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* UniqueIdTest.cs : enable it.
|
||||
|
||||
2006-07-18 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderQuotasTest.cs : fix build.
|
||||
|
||||
2006-03-03 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlSimpleDictionaryWriterTest.cs : AttributeNamespacesXmlnsXmlns()
|
||||
is updated to match XmlTextWriter test.
|
||||
|
||||
2006-02-08 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* UniqueIdTest.cs :
|
||||
It should not be in System.ServiceModel.dll test.
|
||||
|
||||
2006-01-17 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlSimpleDictionaryWriterTest.cs : changed expected exceptions.
|
||||
Fixed one NotDotNet case (to match 2.0 RTM).
|
||||
|
||||
2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
oops, bad file name. s:/Reader/Writer/.
|
||||
|
||||
2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlBinaryDictionaryWriterTest.cs : new file.
|
||||
|
||||
2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlSimpleDictionaryWriterTest.cs : added test for WriteXmlAttribute()
|
||||
and WriteXmlnsAttribute().
|
||||
|
||||
2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderAbstractTest.cs,
|
||||
XmlSimpleDictionaryWriterTest.cs : new files.
|
||||
|
||||
2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderQuotasTest.cs, XmlDictionaryTest.cs : copyrights.
|
||||
|
||||
2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryReaderQuotasTest.cs : new test.
|
||||
|
||||
2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
|
||||
|
||||
* XmlDictionaryTest.cs : new file.
|
||||
|
||||
Reference in New Issue
Block a user