public void ReflectInt() { ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(int) }, new Type[] { }, new[] { "System" }); rc.SupportedSystemTypes.Clear(); var container = GetContainer(rc); var reflector = container.GetService <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(8, specs.Length); AbstractReflectorTest.AssertSpec(typeof(IEquatable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(int), specs); AbstractReflectorTest.AssertSpec(typeof(IConvertible), specs); AbstractReflectorTest.AssertSpec(typeof(object), specs); AbstractReflectorTest.AssertSpec(typeof(ValueType), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable), specs); AbstractReflectorTest.AssertSpec(typeof(IFormattable), specs); }
public void ReflectWhereSelectIterator() { IUnityContainer container = GetContainer(); IEnumerable <int> it = new List <int> { 1, 2, 3 }.Where(i => i == 2).Select(i => i); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { it.GetType().GetGenericTypeDefinition(), typeof(Object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(2, specs.Length); AbstractReflectorTest.AssertSpec(typeof(object), specs[0]); AbstractReflectorTest.AssertSpec(it.GetType().GetGenericTypeDefinition(), specs[1]); }
public void ReflectQueryableTypes() { IUnityContainer container = GetContainer(); IQueryable <object> qo = new List <object>().AsQueryable(); IQueryable <int> qi = new List <int>().AsQueryable(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { qo.GetType(), qi.GetType(), typeof(int), typeof(object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(3, specs.Length); AbstractReflectorTest.AssertSpec(typeof(int), specs[0]); AbstractReflectorTest.AssertSpec(typeof(object), specs[1]); AbstractReflectorTest.AssertSpec(typeof(EnumerableQuery <>), specs[2]); }
public void ReflectByteArray() { IUnityContainer container = GetContainer(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(TestObjectWithByteArray) }, new Type[] { }, new[] { "System" }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; //Assert.AreEqual(31, specs.Length); AbstractReflectorTest.AssertSpec(typeof(IList), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <long>), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(int), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <byte>), specs); AbstractReflectorTest.AssertSpec(typeof(IConvertible), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <byte>), specs); AbstractReflectorTest.AssertSpec(typeof(object), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <bool>), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <bool>), specs); AbstractReflectorTest.AssertSpec(typeof(byte[]), specs); AbstractReflectorTest.AssertSpec(typeof(Array), specs); AbstractReflectorTest.AssertSpec(typeof(ValueType), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <long>), specs); AbstractReflectorTest.AssertSpec(typeof(long), specs); AbstractReflectorTest.AssertSpec(typeof(IStructuralComparable), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable), specs); AbstractReflectorTest.AssertSpec(typeof(ICollection), specs); AbstractReflectorTest.AssertSpec(typeof(bool), specs); AbstractReflectorTest.AssertSpec(typeof(ICloneable), specs); AbstractReflectorTest.AssertSpec(typeof(IList <>), specs); AbstractReflectorTest.AssertSpec(typeof(byte), specs); AbstractReflectorTest.AssertSpec(typeof(IFormattable), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(IReadOnlyList <>), specs); AbstractReflectorTest.AssertSpec(typeof(IReadOnlyCollection <>), specs); AbstractReflectorTest.AssertSpec(typeof(IStructuralEquatable), specs); AbstractReflectorTest.AssertSpec(typeof(ICollection <>), specs); AbstractReflectorTest.AssertSpec(typeof(TestObjectWithByteArray), specs); AbstractReflectorTest.AssertSpec(typeof(IEnumerable <>), specs); AbstractReflectorTest.AssertSpec(typeof(IEnumerable), specs); }
public void ReflectObjectType() { ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); var container = GetContainer(rc); var reflector = container.GetService <IReflector>(); reflector.Reflect(); Assert.AreEqual(1, reflector.AllObjectSpecImmutables.Length); AbstractReflectorTest.AssertSpec(typeof(object), reflector.AllObjectSpecImmutables.First()); }
public void ReflectObjectType() { IUnityContainer container = GetContainer(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); Assert.AreEqual(1, reflector.AllObjectSpecImmutables.Count()); AbstractReflectorTest.AssertSpec(typeof(object), reflector.AllObjectSpecImmutables.First()); }
public void ReflectStringArray() { ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(TestObjectWithStringArray), typeof(string) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); var container = GetContainer(rc); var reflector = container.GetService <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(2, specs.Length); AbstractReflectorTest.AssertSpec(typeof(TestObjectWithStringArray), specs); AbstractReflectorTest.AssertSpec(typeof(string), specs); }
public void ReflectSimpleDomainObject() { IUnityContainer container = GetContainer(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(SimpleDomainObject) }, new Type[] { }, new[] { "System" }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(19, specs.Length); AbstractReflectorTest.AssertSpec(typeof(IComparable <string>), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(int), specs); AbstractReflectorTest.AssertSpec(typeof(IConvertible), specs); AbstractReflectorTest.AssertSpec(typeof(object), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <char>), specs); AbstractReflectorTest.AssertSpec(typeof(char), specs); AbstractReflectorTest.AssertSpec(typeof(ValueType), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable), specs); AbstractReflectorTest.AssertSpec(typeof(ICloneable), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <string>), specs); AbstractReflectorTest.AssertSpec(typeof(IEquatable <char>), specs); AbstractReflectorTest.AssertSpec(typeof(void), specs); AbstractReflectorTest.AssertSpec(typeof(IFormattable), specs); AbstractReflectorTest.AssertSpec(typeof(IComparable <int>), specs); AbstractReflectorTest.AssertSpec(typeof(SimpleDomainObject), specs); AbstractReflectorTest.AssertSpec(typeof(string), specs); AbstractReflectorTest.AssertSpec(typeof(IEnumerable <>), specs); AbstractReflectorTest.AssertSpec(typeof(IEnumerable), specs); }
public void ReflectSetTypes() { IUnityContainer container = GetContainer(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(SetWrapper <>), typeof(object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(2, specs.Length); AbstractReflectorTest.AssertSpec(typeof(object), specs[0]); AbstractReflectorTest.AssertSpec(typeof(SetWrapper <>), specs[1]); }
public void ReflectWhereIterator() { var it = new List <int> { 1, 2, 3 }.Where(i => i == 2); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { it.GetType().GetGenericTypeDefinition(), typeof(object) }, new Type[] { }, new string[] { }); rc.SupportedSystemTypes.Clear(); var container = GetContainer(rc); var reflector = container.GetService <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(2, specs.Length); AbstractReflectorTest.AssertSpec(typeof(object), specs); AbstractReflectorTest.AssertSpec(it.GetType().GetGenericTypeDefinition(), specs); }
public void ReflectWithScalars() { ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(WithScalars) }, new Type[] { }, new[] { "System" }); rc.SupportedSystemTypes.Clear(); var container = GetContainer(rc); var reflector = container.GetService <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(74, specs.Length); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <decimal>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(short), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IList), specs); AbstractReflectorTest.AssertSpecsContain(typeof(uint), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <string>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <long>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <int>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(decimal), specs); AbstractReflectorTest.AssertSpecsContain(typeof(int), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <byte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IConvertible), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <byte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(object), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <DateTime>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <float>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <bool>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <char>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <float>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <bool>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(byte[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(DateTimeKind), specs); AbstractReflectorTest.AssertSpecsContain(typeof(Array), specs); AbstractReflectorTest.AssertSpecsContain(typeof(char), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ValueType), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <TimeSpan>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(DayOfWeek), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <ushort>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <long>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(long), specs); AbstractReflectorTest.AssertSpecsContain(typeof(DateTime), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IStructuralComparable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <DateTime>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ulong), specs); AbstractReflectorTest.AssertSpecsContain(typeof(Enum), specs); AbstractReflectorTest.AssertSpecsContain(typeof(sbyte[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <sbyte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(WithScalars), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ICollection), specs); AbstractReflectorTest.AssertSpecsContain(typeof(bool), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <double>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <decimal>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <ushort>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <uint>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ICloneable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <short>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(TimeSpan), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <string>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IList <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(byte), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <char>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(char[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <uint>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(float), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IFormattable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ISerializable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <int>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(sbyte), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <sbyte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(string), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IReadOnlyList <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IReadOnlyCollection <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IStructuralEquatable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ICollection <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <ulong>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <TimeSpan>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(ushort), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <ulong>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEnumerable <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IComparable <short>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IDeserializationCallback), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEnumerable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(IEquatable <double>), specs); }
public void ReflectWithScalars() { IUnityContainer container = GetContainer(); ReflectorConfiguration.NoValidate = true; var rc = new ReflectorConfiguration(new[] { typeof(WithScalars) }, new Type[] { }, new[] { "System" }); rc.SupportedSystemTypes.Clear(); container.RegisterInstance <IReflectorConfiguration>(rc); var reflector = container.Resolve <IReflector>(); reflector.Reflect(); var specs = reflector.AllObjectSpecImmutables; Assert.AreEqual(74, specs.Length); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Decimal>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Int16), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.IList), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.UInt32), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.String>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Int64>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Int32>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Decimal), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Int32), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Byte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IConvertible), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Byte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Object), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.DateTime>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Single>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Boolean>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Char>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Single>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Boolean>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Byte[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.DateTimeKind), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Array), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Char), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.ValueType), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.TimeSpan>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.DayOfWeek), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.UInt16>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Int64>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Int64), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.DateTime), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.IStructuralComparable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.DateTime>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.UInt64), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Enum), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.SByte[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.SByte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(NakedObjects.ParallelReflect.Test.ReflectorTest.WithScalars), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.ICollection), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Boolean), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Double>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Decimal>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.UInt16>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.UInt32>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.ICloneable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Int16>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.TimeSpan), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.String>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.Generic.IList <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Byte), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Char>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Char[]), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.UInt32>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Single), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IFormattable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Runtime.Serialization.ISerializable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Int32>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.SByte), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.SByte>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.String), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.Generic.IReadOnlyList <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.Generic.IReadOnlyCollection <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.IStructuralEquatable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.Generic.ICollection <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.UInt64>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.TimeSpan>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.UInt16), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.UInt64>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.Generic.IEnumerable <>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IComparable <System.Int16>), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Runtime.Serialization.IDeserializationCallback), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.Collections.IEnumerable), specs); AbstractReflectorTest.AssertSpecsContain(typeof(System.IEquatable <System.Double>), specs); }