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/ComponentModelUnitTest/System/UnitTesting/ReflectionItemAssert.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/UnitTesting/ReflectionItemAssert.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/UnitTesting/ReflectionItemAssert.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/UnitTesting/ReflectionItemAssert.cs
deleted file mode 100644
index 2fac3f659b3..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/UnitTesting/ReflectionItemAssert.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.ComponentModel.Composition.ReflectionModel;
-using System.UnitTesting;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace System.UnitTesting
-{
- internal static class ReflectionItemAssert
- {
- public static void AreSame(ReflectionItem expected, ReflectionItem actual)
- {
- switch (expected.ItemType)
- {
- case ReflectionItemType.Property:
- {
- ReflectionProperty expectedProperty = (ReflectionProperty)expected;
- ReflectionProperty actualProperty = (ReflectionProperty)actual;
-
- ReflectionAssert.AreSame(expectedProperty.UnderlyingGetMethod, actualProperty.UnderlyingGetMethod);
- ReflectionAssert.AreSame(expectedProperty.UnderlyingSetMethod, actualProperty.UnderlyingSetMethod);
- return;
- }
-
- case ReflectionItemType.Parameter:
- {
- ReflectionParameter expectedParameter = (ReflectionParameter)expected;
- ReflectionParameter actualParameter = (ReflectionParameter)actual;
-
- ReflectionAssert.AreSame(expectedParameter.UnderlyingParameter, actualParameter.UnderlyingParameter);
- return;
- }
-
- default:
- {
- ReflectionMember expectedMember = (ReflectionMember)expected;
- ReflectionMember actualMember = (ReflectionMember)actual;
-
- ReflectionAssert.AreSame(expectedMember.UnderlyingMember, actualMember.UnderlyingMember);
- return;
- }
- }
- }
- }
-}