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/ComponentModel/Composition/Hosting/AssemblyCatalogDebuggerProxyTests.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Hosting/AssemblyCatalogDebuggerProxyTests.cs66
1 files changed, 0 insertions, 66 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Hosting/AssemblyCatalogDebuggerProxyTests.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Hosting/AssemblyCatalogDebuggerProxyTests.cs
deleted file mode 100644
index 96f1e1ca626..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/Hosting/AssemblyCatalogDebuggerProxyTests.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.Composition;
-using System.UnitTesting;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.ComponentModel.Composition.Factories;
-using System.Reflection;
-
-namespace System.ComponentModel.Composition.Hosting
-{
- [TestClass]
- public class AssemblyCatalogDebuggerProxyTests
- {
- [TestMethod]
- public void Constructor_NullAsCatalogArgument_ShouldThrowArgumentNull()
- {
- ExceptionAssert.ThrowsArgument<ArgumentNullException>("catalog", () =>
- {
- new AssemblyCatalogDebuggerProxy((AssemblyCatalog)null);
- });
- }
-
- [TestMethod]
- public void Constructor_ValueAsCatalogArgument_ShouldSetPartsProperty()
- {
- var expectations = Expectations.GetAssemblies();
-
- foreach (var e in expectations)
- {
- var catalog = CreateAssemblyCatalog(e);
-
- var proxy = new AssemblyCatalogDebuggerProxy(catalog);
-
- EnumerableAssert.AreSequenceEqual(catalog.Parts, proxy.Parts);
- }
- }
-
- [TestMethod]
- public void Constructor_ValueAsCatalogArgument_ShouldSetAssemblyProperty()
- {
- var expectations = Expectations.GetAssemblies();
-
- foreach (var e in expectations)
- {
- var catalog = CreateAssemblyCatalog(e);
-
- var proxy = new AssemblyCatalogDebuggerProxy(catalog);
-
- Assert.AreSame(catalog.Assembly, proxy.Assembly);
- }
- }
-
- private AssemblyCatalogDebuggerProxy CreateAssemblyDebuggerProxy(AssemblyCatalog catalog)
- {
- return new AssemblyCatalogDebuggerProxy(catalog);
- }
-
- private AssemblyCatalog CreateAssemblyCatalog(Assembly assembly)
- {
- return new AssemblyCatalog(assembly);
- }
- }
-} \ No newline at end of file