Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ReflectionAssert.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ReflectionAssert.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ReflectionAssert.cs b/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ReflectionAssert.cs
deleted file mode 100644
index bc0fca3b83e..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/UnitTestFramework/System/UnitTesting/ReflectionAssert.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.ComponentModel.Composition;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.Reflection;
-
-namespace System.UnitTesting
-{
- // Unfortunately, you can't rely on reference equality for MemberInfo and ParameterInfo
- // objects because, you may get different instances representing the same members depending
- // on the type that the member was retrieived from.
-
- public static class ReflectionAssert
- {
- public static void AreSame(MemberInfo expected, MemberInfo actual)
- {
- if (expected == null && actual == null)
- {
- return;
- }
-
- Assert.AreEqual(expected.MetadataToken, actual.MetadataToken);
- Assert.AreSame(expected.Module, actual.Module);
- Assert.AreEqual(expected.MemberType, actual.MemberType);
- }
-
- public static void AreSame(ParameterInfo expected, ParameterInfo actual)
- {
- if (expected == null && actual == null)
- {
- return;
- }
-
- ReflectionAssert.AreSame(expected.Member, actual.Member);
- Assert.AreEqual(expected.MetadataToken, actual.MetadataToken);
- }
- }
-}