Click here to Skip to main content
15,889,838 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 49K   572   11  
This article explains how to write unit tests for MVVM using Catel.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Catel.Windows.Properties {
    using System;
    
    
    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings, etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    internal class Exceptions {
        
        private static global::System.Resources.ResourceManager resourceMan;
        
        private static global::System.Globalization.CultureInfo resourceCulture;
        
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal Exceptions() {
        }
        
        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Resources.ResourceManager ResourceManager {
            get {
                if (object.ReferenceEquals(resourceMan, null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Catel.Silverlight.Properties.Catel.Windows.Exceptions", typeof(Exceptions).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }
        
        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Gif source was not found.
        /// </summary>
        internal static string AnimatedGifNotFound {
            get {
                return ResourceManager.GetString("AnimatedGifNotFound", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Argument cannot be null or empty.
        /// </summary>
        internal static string ArgumentCannotBeNullOrEmpty {
            get {
                return ResourceManager.GetString("ArgumentCannotBeNullOrEmpty", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Argument must be of type Window.
        /// </summary>
        internal static string ArgumentMustBeOfTypeWindow {
            get {
                return ResourceManager.GetString("ArgumentMustBeOfTypeWindow", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The argument must implement IViewModel interface.
        /// </summary>
        internal static string ArgumentMustImplementIViewModelInterface {
            get {
                return ResourceManager.GetString("ArgumentMustImplementIViewModelInterface", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The dependency property can only be attached to a ScrollViewer.
        /// </summary>
        internal static string DependencyPropertyCanOnlyBeAttachedToScrollViewer {
            get {
                return ResourceManager.GetString("DependencyPropertyCanOnlyBeAttachedToScrollViewer", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Failed to configure IoC container.
        /// </summary>
        internal static string FailedToConfigureIoCContainer {
            get {
                return ResourceManager.GetString("FailedToConfigureIoCContainer", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to MethodToValueConverter can only be used for one way conversion..
        /// </summary>
        internal static string MethodToValueConverterOnlySupportsOneWayBinding {
            get {
                return ResourceManager.GetString("MethodToValueConverterOnlySupportsOneWayBinding", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to No expected results in the queue, set up expected result first.
        /// </summary>
        internal static string NoExpectedResultsInQueueForUnitTest {
            get {
                return ResourceManager.GetString("NoExpectedResultsInQueueForUnitTest", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The service does not support this operation.
        /// </summary>
        internal static string ServiceDoesNotSupportOperation {
            get {
                return ResourceManager.GetString("ServiceDoesNotSupportOperation", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to View model already registered.
        /// </summary>
        internal static string ViewModelAlreadyRegistered {
            get {
                return ResourceManager.GetString("ViewModelAlreadyRegistered", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to viewModelContainer must be of type DependencyObject.
        /// </summary>
        internal static string ViewModelContainerMustBeOfTypeDependencyObject {
            get {
                return ResourceManager.GetString("ViewModelContainerMustBeOfTypeDependencyObject", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Visibility.Visible is not possible as not-visible option.
        /// </summary>
        internal static string VisibilityIsNotAllowedForConverter {
            get {
                return ResourceManager.GetString("VisibilityIsNotAllowedForConverter", resourceCulture);
            }
        }
    }
}

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