I am the founder of RIM Systems, maker of SnapLeague, a web-based league management system for recreational athletics.
", - "Views":1639, - "UpVotes":1665, - "DownVotes":427 - } -} \ No newline at end of file diff --git a/RestSharp.Tests/SerializerTests.cs b/RestSharp.Tests/SerializerTests.cs deleted file mode 100644 index f872e7910..000000000 --- a/RestSharp.Tests/SerializerTests.cs +++ /dev/null @@ -1,460 +0,0 @@ -#region License - -// Copyright 2010 John Sheehan -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#endregion - -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Xml.Linq; -using NUnit.Framework; -using RestSharp.Serializers; -using RestSharp.Tests.SampleClasses; - -namespace RestSharp.Tests -{ - [TestFixture] - public class SerializerTests - { - public SerializerTests() - { - Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; - Thread.CurrentThread.CurrentUICulture = CultureInfo.InstalledUICulture; - } - - [Test] - public void Serializes_Properties_In_Specified_Order() - { - OrderedProperties ordered = new OrderedProperties - { - Name = "Name", - Age = 99, - StartDate = new DateTime(2010, 1, 1) - }; - XmlSerializer xml = new XmlSerializer(); - string doc = xml.Serialize(ordered); - XDocument expected = GetSortedPropsXDoc(); - - Assert.AreEqual(expected.ToString(), doc); - } - - [Test] - public void Can_serialize_simple_POCO() - { - Person poco = new Person - { - Name = "Foo", - Age = 50, - Price = 19.95m, - StartDate = new DateTime(2009, 12, 18, 10, 2, 23), - Items = new List