Skip to content

Commit 76b28f5

Browse files
committed
Remove now-broken and redundant binary serialization tests
1 parent 421d60c commit 76b28f5

18 files changed

Lines changed: 3 additions & 1265 deletions

src/Castle.Core.Tests/DynamicProxy.Tests/Classes/ClassOverridingEqualsAndGetHashCode.cs

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/Castle.Core.Tests/DynamicProxy.Tests/Classes/MySerializableClass.cs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
namespace Castle.DynamicProxy.Tests.Classes
1616
{
1717
using System;
18-
#if FEATURE_SERIALIZATION
19-
using System.Runtime.Serialization;
20-
#endif
18+
2119
#if FEATURE_SERIALIZATION
2220
[Serializable]
2321
#endif
@@ -40,24 +38,4 @@ public virtual double CalculateSumDistanceNow()
4038
return Math.PI;
4139
}
4240
}
43-
44-
#if FEATURE_SERIALIZATION
45-
[Serializable]
46-
public class MySerializableClass2 : MySerializableClass, ISerializable
47-
{
48-
public MySerializableClass2()
49-
{
50-
}
51-
52-
public MySerializableClass2(SerializationInfo info, StreamingContext context)
53-
{
54-
current = (DateTime) info.GetValue("dt", typeof (DateTime));
55-
}
56-
57-
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
58-
{
59-
info.AddValue("dt", current);
60-
}
61-
}
62-
#endif
6341
}

src/Castle.Core.Tests/DynamicProxy.Tests/DictionarySerializationTestCase.cs

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/Castle.Core.Tests/DynamicProxy.Tests/ModuleScopeTestCase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ namespace Castle.DynamicProxy.Tests
1818
using System.IO;
1919
using System.Reflection;
2020
using Castle.DynamicProxy.Generators;
21+
#if FEATURE_SERIALIZATION
2122
using Castle.DynamicProxy.Serialization;
23+
#endif
2224
using Castle.DynamicProxy.Tests.InterClasses;
2325
using NUnit.Framework;
2426

0 commit comments

Comments
 (0)