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/PartMetadataAttributeTests.cs')
-rw-r--r--mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/PartMetadataAttributeTests.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/PartMetadataAttributeTests.cs b/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/PartMetadataAttributeTests.cs
deleted file mode 100644
index 54722a3c9a3..00000000000
--- a/mcs/class/System.ComponentModel.Composition/Tests/ComponentModelUnitTest/System/ComponentModel/Composition/PartMetadataAttributeTests.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-// -----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// -----------------------------------------------------------------------
-using System;
-using System.ComponentModel.Composition;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.UnitTesting;
-
-namespace System.ComponentModel.Composition
-{
- [TestClass]
- public class PartMetadataAttributeTests
- {
- [TestMethod]
- public void Constructor_NullAsNameArgument_ShouldSetNamePropertyToEmptyString()
- {
- var attribute = new PartMetadataAttribute((string)null, "Value");
-
- Assert.AreEqual(string.Empty, attribute.Name);
- }
-
- [TestMethod]
- public void Constructor_ValueAsNameArgument_ShouldSetNameProperty()
- {
- var expectations = Expectations.GetMetadataNames();
-
- foreach (var e in expectations)
- {
- var attribute = new PartMetadataAttribute(e, "Value");
-
- Assert.AreEqual(e, attribute.Name);
- }
- }
-
- [TestMethod]
- public void Constructor_ValueAsValueArgument_ShouldSetValueProperty()
- {
- var expectations = Expectations.GetMetadataValues();
-
- foreach (var e in expectations)
- {
- var attribute = new PartMetadataAttribute("Name", e);
-
- Assert.AreEqual(e, attribute.Value);
- }
- }
- }
-}