Click here to Skip to main content
15,893,588 members
Articles / Desktop Programming / WPF

Catel - Part 4 of n: Unit testing with Catel

Rate me:
Please Sign up or sign in to vote.
4.55/5 (10 votes)
28 Jan 2011CPOL11 min read 49.1K   572   11  
This article explains how to write unit tests for MVVM using Catel.
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SharedAssemblyInfo.cs" company="Catel development team">
//   Copyright (c) 2008 - 2011 Catel development team. All rights reserved.
// </copyright>
// <summary>
//   SharedAssemblyInfo.cs
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;

// Shared assembly info that is common for all assemblies of this project

////[assembly: AssemblyTitle("DEFINED IN ACTUAL ASSEMBLYINFO")]
////[assembly: AssemblyProduct("DEFINED IN ACTUAL ASSEMBLYINFO")]
////[assembly: AssemblyDescription("DEFINED IN ACTUAL ASSEMBLYINFO")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("CatenaLogic")]
[assembly: AssemblyCopyright("Copyright © CatenaLogic 2010 - 2011 - 2011 - 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1")]
[assembly: AssemblyInformationalVersion("1.1")]

// CLS compliant
[assembly: CLSCompliant(true)]

// Sign assembly (this is relative to the obj output directory)
#if X86 || X64
[assembly: AssemblyKeyFile(@"..\..\..\..\Catel.snk")]
#else
[assembly: AssemblyKeyFile(@"..\..\..\Catel.snk")]
#endif

// Allow unit test to find test
[assembly: InternalsVisibleTo("Catel.Core, PublicKey=002400000480000094000000060200000024000052534131000400000100010099d04b18e032ce24bae6ede7b654e09745bf0c7268b5aac1582bcfb349808123a34748ddfc67c884a03d4b8e4e9377d33ed53d7810973bc80d69335ac8c76f03d6250f5b916e2d8b3107ba83501339a6f94757200fa40c002131dd227fbadbe0331b89a6afd3242c21f88a3abe5d91304d5a26cc3103126f077542278669b5a2")]
[assembly: InternalsVisibleTo("Catel.Silverlight, PublicKey=002400000480000094000000060200000024000052534131000400000100010099d04b18e032ce24bae6ede7b654e09745bf0c7268b5aac1582bcfb349808123a34748ddfc67c884a03d4b8e4e9377d33ed53d7810973bc80d69335ac8c76f03d6250f5b916e2d8b3107ba83501339a6f94757200fa40c002131dd227fbadbe0331b89a6afd3242c21f88a3abe5d91304d5a26cc3103126f077542278669b5a2")]
[assembly: InternalsVisibleTo("Catel.Windows, PublicKey=002400000480000094000000060200000024000052534131000400000100010099d04b18e032ce24bae6ede7b654e09745bf0c7268b5aac1582bcfb349808123a34748ddfc67c884a03d4b8e4e9377d33ed53d7810973bc80d69335ac8c76f03d6250f5b916e2d8b3107ba83501339a6f94757200fa40c002131dd227fbadbe0331b89a6afd3242c21f88a3abe5d91304d5a26cc3103126f077542278669b5a2")]

[assembly: InternalsVisibleTo("Catel.Test, PublicKey=002400000480000094000000060200000024000052534131000400000100010099d04b18e032ce24bae6ede7b654e09745bf0c7268b5aac1582bcfb349808123a34748ddfc67c884a03d4b8e4e9377d33ed53d7810973bc80d69335ac8c76f03d6250f5b916e2d8b3107ba83501339a6f94757200fa40c002131dd227fbadbe0331b89a6afd3242c21f88a3abe5d91304d5a26cc3103126f077542278669b5a2")]
[assembly: InternalsVisibleTo("Catel.Silverlight.Test, PublicKey=002400000480000094000000060200000024000052534131000400000100010099d04b18e032ce24bae6ede7b654e09745bf0c7268b5aac1582bcfb349808123a34748ddfc67c884a03d4b8e4e9377d33ed53d7810973bc80d69335ac8c76f03d6250f5b916e2d8b3107ba83501339a6f94757200fa40c002131dd227fbadbe0331b89a6afd3242c21f88a3abe5d91304d5a26cc3103126f077542278669b5a2")]
/*[assembly: InternalsVisibleTo("nunit.framework, PublicKey=0024000004800000940000000602000000240000525341310004000001000100cf4a0bbf354b6d8d0c39e7bc40dd0be16a32ba9d763e8d04fd9591b92d7269dd09c2c65ec7563ce393aca71913bea13dd6a20d676ed7ddc726f846fce66800bb034903619a1baa520f5f758946cf2b4af6ba7c310d02d092a5cf51be6d52e88633f502474b4f461d850b63219c09a3373a23d73156ee03d6c7b38c36d1211fac")]
[assembly: InternalsVisibleTo("Rhino.Mocks, PublicKey=00240000048000009400000006020000002400005253413100040000010001009d1cf4b75b7218b141ac64c15450141b1e5f41f6a302ac717ab9761fa6ae2c3ee0c354c22d0a60ac59de41fa285d572e7cf33c320aa7ff877e2b7da1792fcc6aa4eb0b4d8294a2f74cb14d03fb9b091f751d6dc49e626d74601692c99eab7718ed76a40c36d39af842be378b677e6e4eae973f643d7065241ad86ecc156d81ab")]*/

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Netherlands Netherlands
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions