/V4/PrismLibrary/Desktop/Prism.Tests/Modularity/ModuleInfoGroupFixture.cs
C# | 38 lines | 19 code | 3 blank | 16 comment | 0 complexity | c3d81e6bcb324c713fa6c8f0c06b63e3 MD5 | raw file
- //===================================================================================
- // Microsoft patterns & practices
- // Composite Application Guidance for Windows Presentation Foundation and Silverlight
- //===================================================================================
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
- // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
- // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- // FITNESS FOR A PARTICULAR PURPOSE.
- //===================================================================================
- // The example companies, organizations, products, domain names,
- // e-mail addresses, logos, people, places, and events depicted
- // herein are fictitious. No association with any real company,
- // organization, product, domain name, email address, logo, person,
- // places, or events is intended or should be inferred.
- //===================================================================================
- using Microsoft.Practices.Prism.Modularity;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
-
- namespace Microsoft.Practices.Prism.Tests.Modularity
- {
- [TestClass]
- public class ModuleInfoGroupFixture
- {
- [TestMethod]
- public void ShouldForwardValuesToModuleInfo()
- {
- ModuleInfoGroup group = new ModuleInfoGroup();
- group.Ref = "MyCustomGroupRef";
- ModuleInfo moduleInfo = new ModuleInfo();
- Assert.IsNull(moduleInfo.Ref);
-
- group.Add(moduleInfo);
-
- Assert.AreEqual(group.Ref, moduleInfo.Ref);
- }
- }
- }