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,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user