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/ComposablePartDefinitionTests.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/ComposablePartDefinitionTests.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/ComposablePartDefinitionTests.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/ComposablePartDefinitionTests.cs
deleted file mode 100644
index cdf484ee5b1..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/ComposablePartDefinitionTests.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.Composition;
-using System.Linq;
-using System.Reflection;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.UnitTesting;
-using System.ComponentModel.Composition.Factories;
-
-namespace System.ComponentModel.Composition
-{
- [TestClass]
- public class ComposablePartDefinitionTests
- {
- [TestMethod]
- public void Constructor1_ShouldNotThrow()
- {
- PartDefinitionFactory.Create();
- }
-
- [TestMethod]
- public void Constructor1_ShouldSetMetadataPropertyToEmptyDictionary()
- {
- var definition = PartDefinitionFactory.Create();
-
- EnumerableAssert.IsEmpty(definition.Metadata);
- }
-
- [TestMethod]
- public void Constructor1_ShouldSetMetadataPropertyToReadOnlyDictionary()
- {
- var definition = PartDefinitionFactory.Create();
-
- ExceptionAssert.Throws<NotSupportedException>(() =>
- {
- definition.Metadata["Value"] = "Value";
- });
- }
- }
-}
-