diff --git a/.editorconfig b/.editorconfig
index 50fb1e6c5..be9f7c581 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -12,10 +12,18 @@ end_of_line = CRLF
indent_style = tab
indent_size = 4
-[*.{sln,proj,csproj,fsproj,vbproj,props,targets,xml,xdoc,resx,config,nuspec}]
+[*.{sln,proj,csproj,fsproj,vbproj,props,targets,xml,xdoc,config,nuspec}]
indent_style = tab
indent_size = 2
+[*.Designer.cs]
+indent_style = space
+indent_size = 4
+
+[*.resx]
+indent_style = space
+indent_size = 2
+
[appveyor.yml]
indent_style = space
indent_size = 2
diff --git a/src/Moq/Properties/Resources.Designer.cs b/src/Moq/Properties/Resources.Designer.cs
index ef85d3751..b49caa0c5 100644
--- a/src/Moq/Properties/Resources.Designer.cs
+++ b/src/Moq/Properties/Resources.Designer.cs
@@ -9,763 +9,763 @@
//------------------------------------------------------------------------------
namespace Moq.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // 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", "16.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [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("Moq.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- ///
- /// Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
- ///
- internal static string AlreadyInitialized {
- get {
- return ResourceManager.GetString("AlreadyInitialized", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Value cannot be an empty string..
- ///
- internal static string ArgumentCannotBeEmpty {
- get {
- return ResourceManager.GetString("ArgumentCannotBeEmpty", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Can only add interfaces to the mock..
- ///
- internal static string AsMustBeInterface {
- get {
- return ResourceManager.GetString("AsMustBeInterface", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to CallBase cannot be used with Delegate mocks..
- ///
- internal static string CallBaseCannotBeUsedWithDelegateMocks {
- get {
- return ResourceManager.GetString("CallBaseCannotBeUsedWithDelegateMocks", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Can't set return value for void method {0}..
- ///
- internal static string CantSetReturnValueForVoid {
- get {
- return ResourceManager.GetString("CantSetReturnValueForVoid", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..
- ///
- internal static string ConstructorArgsForDelegate {
- get {
- return ResourceManager.GetString("ConstructorArgsForDelegate", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
- ///
- internal static string ConstructorArgsForInterface {
- get {
- return ResourceManager.GetString("ConstructorArgsForInterface", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
- ///
- internal static string ConstructorNotFound {
- get {
- return ResourceManager.GetString("ConstructorNotFound", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Delays have to be greater than zero to ensure an async callback is used..
- ///
- internal static string DelaysMustBeGreaterThanZero {
- get {
- return ResourceManager.GetString("DelaysMustBeGreaterThanZero", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Could not locate event for attach or detach method {0}..
- ///
- internal static string EventNotFound {
- get {
- return ResourceManager.GetString("EventNotFound", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not an event attach or detach, or the event is declared in a class but not marked virtual..
- ///
- internal static string ExpressionIsNotEventAttachOrDetachOrIsNotVirtual {
- get {
- return ResourceManager.GetString("ExpressionIsNotEventAttachOrDetachOrIsNotVirtual", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
- ///
- internal static string FieldsNotSupported {
- get {
- return ResourceManager.GetString("FieldsNotSupported", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invalid callback. This overload of the "Callback" method only accepts "void" (C#) or "Sub" (VB.NET) delegates with parameter types matching those of the set up method..
- ///
- internal static string InvalidCallbackNotADelegateWithReturnTypeVoid {
- get {
- return ResourceManager.GetString("InvalidCallbackNotADelegateWithReturnTypeVoid", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invalid callback. Setup on method with {0} parameter(s) cannot invoke callback with different number of parameters ({1})..
- ///
- internal static string InvalidCallbackParameterCountMismatch {
- get {
- return ResourceManager.GetString("InvalidCallbackParameterCountMismatch", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invalid callback. Setup on method with parameters ({0}) cannot invoke callback with parameters ({1})..
- ///
- internal static string InvalidCallbackParameterMismatch {
- get {
- return ResourceManager.GetString("InvalidCallbackParameterMismatch", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invalid callback. Setup on method with return type ({0}) cannot invoke callback with return type ({1})..
- ///
- internal static string InvalidCallbackReturnTypeMismatch {
- get {
- return ResourceManager.GetString("InvalidCallbackReturnTypeMismatch", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
- ///
- internal static string InvalidMockClass {
- get {
- return ResourceManager.GetString("InvalidMockClass", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
- ///Please cast the argument to one of the supported types: {1}.
- ///Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
- ///
- internal static string InvalidMockGetType {
- get {
- return ResourceManager.GetString("InvalidMockGetType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invalid callback. This overload of the "Returns" method only accepts non-"void" (C#) or "Function" (VB.NET) delegates with parameter types matching those of the set up method..
- ///
- internal static string InvalidReturnsCallbackNotADelegateWithReturnType {
- get {
- return ResourceManager.GetString("InvalidReturnsCallbackNotADelegateWithReturnType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to The return type of the last member shown above is not mockable..
- ///
- internal static string LastMemberHasNonInterceptableReturnType {
- get {
- return ResourceManager.GetString("LastMemberHasNonInterceptableReturnType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
- ///
- internal static string LinqBinaryOperatorNotSupported {
- get {
- return ResourceManager.GetString("LinqBinaryOperatorNotSupported", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to LINQ method '{0}' not supported..
- ///
- internal static string LinqMethodNotSupported {
- get {
- return ResourceManager.GetString("LinqMethodNotSupported", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
- ///
- internal static string LinqMethodNotVirtual {
- get {
- return ResourceManager.GetString("LinqMethodNotVirtual", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Could not determine the correct positions for all argument matchers ({0} in total) used in a call to this method: {1}.
- ///This could be caused by an unrecognized type conversion, coercion, narrowing, or widening, and is most likely a bug in Moq. Please report your use case to the Moq team..
- ///
- internal static string MatcherAssignmentFailedDuringExpressionReconstruction {
- get {
- return ResourceManager.GetString("MatcherAssignmentFailedDuringExpressionReconstruction", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Member {0}.{1} does not exist..
- ///
- internal static string MemberMissing {
- get {
- return ResourceManager.GetString("MemberMissing", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
- ///mock.Setup(x => x.{1}());
- ///.
- ///
- internal static string MethodIsPublic {
- get {
- return ResourceManager.GetString("MethodIsPublic", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to No protected method {0}.{1} found whose signature is compatible with the provided arguments ({2})..
- ///
- internal static string MethodMissing {
- get {
- return ResourceManager.GetString("MethodMissing", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Cannot set up {0}.{1} because it is not accessible to the proxy generator used by Moq:
- ///{2}.
- ///
- internal static string MethodNotVisibleToProxyFactory {
- get {
- return ResourceManager.GetString("MethodNotVisibleToProxyFactory", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Minimum delay has to be lower than maximum delay..
- ///
- internal static string MinDelayMustBeLessThanMaxDelay {
- get {
- return ResourceManager.GetString("MinDelayMustBeLessThanMaxDelay", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
- ///{2}.
- ///
- internal static string MockExceptionMessage {
- get {
- return ResourceManager.GetString("MockExceptionMessage", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected only {0} calls to {1}..
- ///
- internal static string MoreThanNCalls {
- get {
- return ResourceManager.GetString("MoreThanNCalls", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected only one call to {0}..
- ///
- internal static string MoreThanOneCall {
- get {
- return ResourceManager.GetString("MoreThanOneCall", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to The next member after the last one shown above is non-virtual, sealed, or not visible to the proxy factory..
- ///
- internal static string NextMemberNonInterceptable {
- get {
- return ResourceManager.GetString("NextMemberNonInterceptable", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to No invocations performed..
- ///
- internal static string NoInvocationsPerformed {
- get {
- return ResourceManager.GetString("NoInvocationsPerformed", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock at least {0} times, but was {2} times: .
- ///
- internal static string NoMatchingCallsAtLeast {
- get {
- return ResourceManager.GetString("NoMatchingCallsAtLeast", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock at least once, but was never performed: .
- ///
- internal static string NoMatchingCallsAtLeastOnce {
- get {
- return ResourceManager.GetString("NoMatchingCallsAtLeastOnce", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock at most {1} times, but was {2} times: .
- ///
- internal static string NoMatchingCallsAtMost {
- get {
- return ResourceManager.GetString("NoMatchingCallsAtMost", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock at most once, but was {2} times: .
- ///
- internal static string NoMatchingCallsAtMostOnce {
- get {
- return ResourceManager.GetString("NoMatchingCallsAtMostOnce", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock between {0} and {1} times (Exclusive), but was {2} times: .
- ///
- internal static string NoMatchingCallsBetweenExclusive {
- get {
- return ResourceManager.GetString("NoMatchingCallsBetweenExclusive", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock between {0} and {1} times (Inclusive), but was {2} times: .
- ///
- internal static string NoMatchingCallsBetweenInclusive {
- get {
- return ResourceManager.GetString("NoMatchingCallsBetweenInclusive", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock exactly {0} times, but was {2} times: .
- ///
- internal static string NoMatchingCallsExactly {
- get {
- return ResourceManager.GetString("NoMatchingCallsExactly", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock should never have been performed, but was {2} times: .
- ///
- internal static string NoMatchingCallsNever {
- get {
- return ResourceManager.GetString("NoMatchingCallsNever", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expected invocation on the mock once, but was {2} times: .
- ///
- internal static string NoMatchingCallsOnce {
- get {
- return ResourceManager.GetString("NoMatchingCallsOnce", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
- ///
- internal static string NoSetup {
- get {
- return ResourceManager.GetString("NoSetup", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to No setups configured..
- ///
- internal static string NoSetupsConfigured {
- get {
- return ResourceManager.GetString("NoSetupsConfigured", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Object instance was not created by Moq..
- ///
- internal static string ObjectInstanceNotMock {
- get {
- return ResourceManager.GetString("ObjectInstanceNotMock", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Out expression must evaluate to a constant value..
- ///
- internal static string OutExpressionMustBeConstantValue {
- get {
- return ResourceManager.GetString("OutExpressionMustBeConstantValue", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Performed invocations:.
- ///
- internal static string PerformedInvocations {
- get {
- return ResourceManager.GetString("PerformedInvocations", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Property {0}.{1} does not have a getter..
- ///
- internal static string PropertyGetNotFound {
- get {
- return ResourceManager.GetString("PropertyGetNotFound", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Property {0}.{1} does not have a setter..
- ///
- internal static string PropertySetNotFound {
- get {
- return ResourceManager.GetString("PropertySetNotFound", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Type {0} does not have matching protected member: {1}.
- ///
- internal static string ProtectedMemberNotFound {
- get {
- return ResourceManager.GetString("ProtectedMemberNotFound", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
- ///
- internal static string RaisedUnassociatedEvent {
- get {
- return ResourceManager.GetString("RaisedUnassociatedEvent", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Ref expression must evaluate to a constant value..
- ///
- internal static string RefExpressionMustBeConstantValue {
- get {
- return ResourceManager.GetString("RefExpressionMustBeConstantValue", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
- ///
- internal static string ReturnValueRequired {
- get {
- return ResourceManager.GetString("ReturnValueRequired", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not a method invocation: {0}.
- ///
- internal static string SetupNotMethod {
- get {
- return ResourceManager.GetString("SetupNotMethod", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not a property access: {0}.
- ///
- internal static string SetupNotProperty {
- get {
- return ResourceManager.GetString("SetupNotProperty", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not a property setter invocation..
- ///
- internal static string SetupNotSetter {
- get {
- return ResourceManager.GetString("SetupNotSetter", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not an event add invocation..
- ///
- internal static string SetupNotEventAttach {
- get {
- return ResourceManager.GetString("SetupNotEventAttach", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Expression is not an event remove invocation..
- ///
- internal static string SetupNotEventDetach {
- get {
- return ResourceManager.GetString("SetupNotEventDetach", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Type {0} does not implement required interface {1}.
- ///
- internal static string TypeNotImplementInterface {
- get {
- return ResourceManager.GetString("TypeNotImplementInterface", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Type {0} does not from required type {1}.
- ///
- internal static string TypeNotInheritFromType {
- get {
- return ResourceManager.GetString("TypeNotInheritFromType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
- ///mock.Setup(x => x.{1}).Returns(value);
- ///mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
- ///mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
- ///.
- ///
- internal static string UnexpectedPublicProperty {
- get {
- return ResourceManager.GetString("UnexpectedPublicProperty", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Unexpected translation of a member access: {0}.
- ///
- internal static string UnexpectedTranslationOfMemberAccess {
- get {
- return ResourceManager.GetString("UnexpectedTranslationOfMemberAccess", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Unhandled binding type: {0}.
- ///
- internal static string UnhandledBindingType {
- get {
- return ResourceManager.GetString("UnhandledBindingType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Unhandled expression type: {0}.
- ///
- internal static string UnhandledExpressionType {
- get {
- return ResourceManager.GetString("UnhandledExpressionType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to {0}:
- ///This setup was not matched..
- ///
- internal static string UnmatchedSetup {
- get {
- return ResourceManager.GetString("UnmatchedSetup", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Unsupported expression: {0}.
- ///
- internal static string UnsupportedExpression {
- get {
- return ResourceManager.GetString("UnsupportedExpression", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Unsupported expression: {0}
- ///{1}.
- ///
- internal static string UnsupportedExpressionWithHint {
- get {
- return ResourceManager.GetString("UnsupportedExpressionWithHint", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Extension methods (here: {0}) may not be used in setup / verification expressions..
- ///
- internal static string UnsupportedExtensionMethod {
- get {
- return ResourceManager.GetString("UnsupportedExtensionMethod", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Member {0} is not supported for protected mocking..
- ///
- internal static string UnsupportedMember {
- get {
- return ResourceManager.GetString("UnsupportedMember", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Non-overridable members (here: {0}) may not be used in setup / verification expressions..
- ///
- internal static string UnsupportedNonOverridableMember {
- get {
- return ResourceManager.GetString("UnsupportedNonOverridableMember", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Static members (here: {0}) may not be used in setup / verification expressions..
- ///
- internal static string UnsupportedStaticMember {
- get {
- return ResourceManager.GetString("UnsupportedStaticMember", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to {0}:
- ///This mock failed verification due to the following unverified invocations:.
- ///
- internal static string UnverifiedInvocations {
- get {
- return ResourceManager.GetString("UnverifiedInvocations", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Use ItExpr.IsNull<TValue> rather than a null argument value, as it prevents proper method lookup..
- ///
- internal static string UseItExprIsNullRatherThanNullArgumentValue {
- get {
- return ResourceManager.GetString("UseItExprIsNullRatherThanNullArgumentValue", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to {0}:.
- ///
- internal static string VerificationErrorsOfInnerMock {
- get {
- return ResourceManager.GetString("VerificationErrorsOfInnerMock", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to {0}:
- ///This mock failed verification due to the following:.
- ///
- internal static string VerificationErrorsOfMock {
- get {
- return ResourceManager.GetString("VerificationErrorsOfMock", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to The mock repository failed verification due to the following:.
- ///
- internal static string VerificationErrorsOfMockRepository {
- get {
- return ResourceManager.GetString("VerificationErrorsOfMockRepository", resourceCulture);
- }
- }
- }
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // 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", "16.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [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("Moq.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that..
+ ///
+ internal static string AlreadyInitialized {
+ get {
+ return ResourceManager.GetString("AlreadyInitialized", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Value cannot be an empty string..
+ ///
+ internal static string ArgumentCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("ArgumentCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Can only add interfaces to the mock..
+ ///
+ internal static string AsMustBeInterface {
+ get {
+ return ResourceManager.GetString("AsMustBeInterface", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to CallBase cannot be used with Delegate mocks..
+ ///
+ internal static string CallBaseCannotBeUsedWithDelegateMocks {
+ get {
+ return ResourceManager.GetString("CallBaseCannotBeUsedWithDelegateMocks", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Can't set return value for void method {0}..
+ ///
+ internal static string CantSetReturnValueForVoid {
+ get {
+ return ResourceManager.GetString("CantSetReturnValueForVoid", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Constructor arguments cannot be passed for delegate mocks..
+ ///
+ internal static string ConstructorArgsForDelegate {
+ get {
+ return ResourceManager.GetString("ConstructorArgsForDelegate", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Constructor arguments cannot be passed for interface mocks..
+ ///
+ internal static string ConstructorArgsForInterface {
+ get {
+ return ResourceManager.GetString("ConstructorArgsForInterface", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to A matching constructor for the given arguments was not found on the mocked type..
+ ///
+ internal static string ConstructorNotFound {
+ get {
+ return ResourceManager.GetString("ConstructorNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Delays have to be greater than zero to ensure an async callback is used..
+ ///
+ internal static string DelaysMustBeGreaterThanZero {
+ get {
+ return ResourceManager.GetString("DelaysMustBeGreaterThanZero", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Could not locate event for attach or detach method {0}..
+ ///
+ internal static string EventNotFound {
+ get {
+ return ResourceManager.GetString("EventNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not an event attach or detach, or the event is declared in a class but not marked virtual..
+ ///
+ internal static string ExpressionIsNotEventAttachOrDetachOrIsNotVirtual {
+ get {
+ return ResourceManager.GetString("ExpressionIsNotEventAttachOrDetachOrIsNotVirtual", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression {0} involves a field access, which is not supported. Use properties instead..
+ ///
+ internal static string FieldsNotSupported {
+ get {
+ return ResourceManager.GetString("FieldsNotSupported", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invalid callback. This overload of the "Callback" method only accepts "void" (C#) or "Sub" (VB.NET) delegates with parameter types matching those of the set up method..
+ ///
+ internal static string InvalidCallbackNotADelegateWithReturnTypeVoid {
+ get {
+ return ResourceManager.GetString("InvalidCallbackNotADelegateWithReturnTypeVoid", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invalid callback. Setup on method with {0} parameter(s) cannot invoke callback with different number of parameters ({1})..
+ ///
+ internal static string InvalidCallbackParameterCountMismatch {
+ get {
+ return ResourceManager.GetString("InvalidCallbackParameterCountMismatch", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invalid callback. Setup on method with parameters ({0}) cannot invoke callback with parameters ({1})..
+ ///
+ internal static string InvalidCallbackParameterMismatch {
+ get {
+ return ResourceManager.GetString("InvalidCallbackParameterMismatch", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invalid callback. Setup on method with return type ({0}) cannot invoke callback with return type ({1})..
+ ///
+ internal static string InvalidCallbackReturnTypeMismatch {
+ get {
+ return ResourceManager.GetString("InvalidCallbackReturnTypeMismatch", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type to mock must be an interface or an abstract or non-sealed class. .
+ ///
+ internal static string InvalidMockClass {
+ get {
+ return ResourceManager.GetString("InvalidMockClass", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
+ ///Please cast the argument to one of the supported types: {1}.
+ ///Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed..
+ ///
+ internal static string InvalidMockGetType {
+ get {
+ return ResourceManager.GetString("InvalidMockGetType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invalid callback. This overload of the "Returns" method only accepts non-"void" (C#) or "Function" (VB.NET) delegates with parameter types matching those of the set up method..
+ ///
+ internal static string InvalidReturnsCallbackNotADelegateWithReturnType {
+ get {
+ return ResourceManager.GetString("InvalidReturnsCallbackNotADelegateWithReturnType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The return type of the last member shown above is not mockable..
+ ///
+ internal static string LastMemberHasNonInterceptableReturnType {
+ get {
+ return ResourceManager.GetString("LastMemberHasNonInterceptableReturnType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}.
+ ///
+ internal static string LinqBinaryOperatorNotSupported {
+ get {
+ return ResourceManager.GetString("LinqBinaryOperatorNotSupported", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to LINQ method '{0}' not supported..
+ ///
+ internal static string LinqMethodNotSupported {
+ get {
+ return ResourceManager.GetString("LinqMethodNotSupported", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}.
+ ///
+ internal static string LinqMethodNotVirtual {
+ get {
+ return ResourceManager.GetString("LinqMethodNotVirtual", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Could not determine the correct positions for all argument matchers ({0} in total) used in a call to this method: {1}.
+ ///This could be caused by an unrecognized type conversion, coercion, narrowing, or widening, and is most likely a bug in Moq. Please report your use case to the Moq team..
+ ///
+ internal static string MatcherAssignmentFailedDuringExpressionReconstruction {
+ get {
+ return ResourceManager.GetString("MatcherAssignmentFailedDuringExpressionReconstruction", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Member {0}.{1} does not exist..
+ ///
+ internal static string MemberMissing {
+ get {
+ return ResourceManager.GetString("MemberMissing", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Method {0}.{1} is public. Use strong-typed Expect overload instead:
+ ///mock.Setup(x => x.{1}());
+ ///.
+ ///
+ internal static string MethodIsPublic {
+ get {
+ return ResourceManager.GetString("MethodIsPublic", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No protected method {0}.{1} found whose signature is compatible with the provided arguments ({2})..
+ ///
+ internal static string MethodMissing {
+ get {
+ return ResourceManager.GetString("MethodMissing", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Cannot set up {0}.{1} because it is not accessible to the proxy generator used by Moq:
+ ///{2}.
+ ///
+ internal static string MethodNotVisibleToProxyFactory {
+ get {
+ return ResourceManager.GetString("MethodNotVisibleToProxyFactory", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Minimum delay has to be lower than maximum delay..
+ ///
+ internal static string MinDelayMustBeLessThanMaxDelay {
+ get {
+ return ResourceManager.GetString("MinDelayMustBeLessThanMaxDelay", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0} invocation failed with mock behavior {1}.
+ ///{2}.
+ ///
+ internal static string MockExceptionMessage {
+ get {
+ return ResourceManager.GetString("MockExceptionMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected only {0} calls to {1}..
+ ///
+ internal static string MoreThanNCalls {
+ get {
+ return ResourceManager.GetString("MoreThanNCalls", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected only one call to {0}..
+ ///
+ internal static string MoreThanOneCall {
+ get {
+ return ResourceManager.GetString("MoreThanOneCall", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The next member after the last one shown above is non-virtual, sealed, or not visible to the proxy factory..
+ ///
+ internal static string NextMemberNonInterceptable {
+ get {
+ return ResourceManager.GetString("NextMemberNonInterceptable", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No invocations performed..
+ ///
+ internal static string NoInvocationsPerformed {
+ get {
+ return ResourceManager.GetString("NoInvocationsPerformed", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock at least {0} times, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsAtLeast {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsAtLeast", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock at least once, but was never performed: .
+ ///
+ internal static string NoMatchingCallsAtLeastOnce {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsAtLeastOnce", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock at most {1} times, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsAtMost {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsAtMost", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock at most once, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsAtMostOnce {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsAtMostOnce", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock between {0} and {1} times (Exclusive), but was {2} times: .
+ ///
+ internal static string NoMatchingCallsBetweenExclusive {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsBetweenExclusive", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock between {0} and {1} times (Inclusive), but was {2} times: .
+ ///
+ internal static string NoMatchingCallsBetweenInclusive {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsBetweenInclusive", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock exactly {0} times, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsExactly {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsExactly", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock should never have been performed, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsNever {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsNever", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expected invocation on the mock once, but was {2} times: .
+ ///
+ internal static string NoMatchingCallsOnce {
+ get {
+ return ResourceManager.GetString("NoMatchingCallsOnce", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to All invocations on the mock must have a corresponding setup..
+ ///
+ internal static string NoSetup {
+ get {
+ return ResourceManager.GetString("NoSetup", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No setups configured..
+ ///
+ internal static string NoSetupsConfigured {
+ get {
+ return ResourceManager.GetString("NoSetupsConfigured", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Object instance was not created by Moq..
+ ///
+ internal static string ObjectInstanceNotMock {
+ get {
+ return ResourceManager.GetString("ObjectInstanceNotMock", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Out expression must evaluate to a constant value..
+ ///
+ internal static string OutExpressionMustBeConstantValue {
+ get {
+ return ResourceManager.GetString("OutExpressionMustBeConstantValue", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Performed invocations:.
+ ///
+ internal static string PerformedInvocations {
+ get {
+ return ResourceManager.GetString("PerformedInvocations", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Property {0}.{1} does not have a getter..
+ ///
+ internal static string PropertyGetNotFound {
+ get {
+ return ResourceManager.GetString("PropertyGetNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Property {0}.{1} does not have a setter..
+ ///
+ internal static string PropertySetNotFound {
+ get {
+ return ResourceManager.GetString("PropertySetNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type {0} does not have matching protected member: {1}.
+ ///
+ internal static string ProtectedMemberNotFound {
+ get {
+ return ResourceManager.GetString("ProtectedMemberNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object..
+ ///
+ internal static string RaisedUnassociatedEvent {
+ get {
+ return ResourceManager.GetString("RaisedUnassociatedEvent", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Ref expression must evaluate to a constant value..
+ ///
+ internal static string RefExpressionMustBeConstantValue {
+ get {
+ return ResourceManager.GetString("RefExpressionMustBeConstantValue", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Invocation needs to return a value and therefore must have a corresponding setup that provides it..
+ ///
+ internal static string ReturnValueRequired {
+ get {
+ return ResourceManager.GetString("ReturnValueRequired", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not an event add: {0}.
+ ///
+ internal static string SetupNotEventAttach {
+ get {
+ return ResourceManager.GetString("SetupNotEventAttach", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not an event remove: {0}.
+ ///
+ internal static string SetupNotEventDetach {
+ get {
+ return ResourceManager.GetString("SetupNotEventDetach", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not a method invocation: {0}.
+ ///
+ internal static string SetupNotMethod {
+ get {
+ return ResourceManager.GetString("SetupNotMethod", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not a property access: {0}.
+ ///
+ internal static string SetupNotProperty {
+ get {
+ return ResourceManager.GetString("SetupNotProperty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Expression is not a property setter invocation..
+ ///
+ internal static string SetupNotSetter {
+ get {
+ return ResourceManager.GetString("SetupNotSetter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type {0} does not implement required interface {1}.
+ ///
+ internal static string TypeNotImplementInterface {
+ get {
+ return ResourceManager.GetString("TypeNotImplementInterface", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type {0} does not from required type {1}.
+ ///
+ internal static string TypeNotInheritFromType {
+ get {
+ return ResourceManager.GetString("TypeNotInheritFromType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to To specify a setup for public property {0}.{1}, use the typed overloads, such as:
+ ///mock.Setup(x => x.{1}).Returns(value);
+ ///mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
+ ///mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
+ ///.
+ ///
+ internal static string UnexpectedPublicProperty {
+ get {
+ return ResourceManager.GetString("UnexpectedPublicProperty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unexpected translation of a member access: {0}.
+ ///
+ internal static string UnexpectedTranslationOfMemberAccess {
+ get {
+ return ResourceManager.GetString("UnexpectedTranslationOfMemberAccess", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unhandled binding type: {0}.
+ ///
+ internal static string UnhandledBindingType {
+ get {
+ return ResourceManager.GetString("UnhandledBindingType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unhandled expression type: {0}.
+ ///
+ internal static string UnhandledExpressionType {
+ get {
+ return ResourceManager.GetString("UnhandledExpressionType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0}:
+ ///This setup was not matched..
+ ///
+ internal static string UnmatchedSetup {
+ get {
+ return ResourceManager.GetString("UnmatchedSetup", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unsupported expression: {0}.
+ ///
+ internal static string UnsupportedExpression {
+ get {
+ return ResourceManager.GetString("UnsupportedExpression", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unsupported expression: {0}
+ ///{1}.
+ ///
+ internal static string UnsupportedExpressionWithHint {
+ get {
+ return ResourceManager.GetString("UnsupportedExpressionWithHint", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Extension methods (here: {0}) may not be used in setup / verification expressions..
+ ///
+ internal static string UnsupportedExtensionMethod {
+ get {
+ return ResourceManager.GetString("UnsupportedExtensionMethod", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Member {0} is not supported for protected mocking..
+ ///
+ internal static string UnsupportedMember {
+ get {
+ return ResourceManager.GetString("UnsupportedMember", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Non-overridable members (here: {0}) may not be used in setup / verification expressions..
+ ///
+ internal static string UnsupportedNonOverridableMember {
+ get {
+ return ResourceManager.GetString("UnsupportedNonOverridableMember", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Static members (here: {0}) may not be used in setup / verification expressions..
+ ///
+ internal static string UnsupportedStaticMember {
+ get {
+ return ResourceManager.GetString("UnsupportedStaticMember", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0}:
+ ///This mock failed verification due to the following unverified invocations:.
+ ///
+ internal static string UnverifiedInvocations {
+ get {
+ return ResourceManager.GetString("UnverifiedInvocations", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Use ItExpr.IsNull<TValue> rather than a null argument value, as it prevents proper method lookup..
+ ///
+ internal static string UseItExprIsNullRatherThanNullArgumentValue {
+ get {
+ return ResourceManager.GetString("UseItExprIsNullRatherThanNullArgumentValue", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0}:.
+ ///
+ internal static string VerificationErrorsOfInnerMock {
+ get {
+ return ResourceManager.GetString("VerificationErrorsOfInnerMock", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0}:
+ ///This mock failed verification due to the following:.
+ ///
+ internal static string VerificationErrorsOfMock {
+ get {
+ return ResourceManager.GetString("VerificationErrorsOfMock", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The mock repository failed verification due to the following:.
+ ///
+ internal static string VerificationErrorsOfMockRepository {
+ get {
+ return ResourceManager.GetString("VerificationErrorsOfMockRepository", resourceCulture);
+ }
+ }
+ }
}
diff --git a/src/Moq/Properties/Resources.resx b/src/Moq/Properties/Resources.resx
index 06db8b944..25f444686 100644
--- a/src/Moq/Properties/Resources.resx
+++ b/src/Moq/Properties/Resources.resx
@@ -1,366 +1,366 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Expression {0} involves a field access, which is not supported. Use properties instead.
-
-
- Type to mock must be an interface or an abstract or non-sealed class.
-
-
- {0} invocation failed with mock behavior {1}.
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Expression {0} involves a field access, which is not supported. Use properties instead.
+
+
+ Type to mock must be an interface or an abstract or non-sealed class.
+
+
+ {0} invocation failed with mock behavior {1}.
{2}
-
-
- Unsupported expression: {0}
-
-
- All invocations on the mock must have a corresponding setup.
-
-
- Invocation needs to return a value and therefore must have a corresponding setup that provides it.
-
-
- {0}:
+
+
+ Unsupported expression: {0}
+
+
+ All invocations on the mock must have a corresponding setup.
+
+
+ Invocation needs to return a value and therefore must have a corresponding setup that provides it.
+
+
+ {0}:
This setup was not matched.
-
-
- Constructor arguments cannot be passed for interface mocks.
-
-
- Constructor arguments cannot be passed for delegate mocks.
-
-
- A matching constructor for the given arguments was not found on the mocked type.
-
-
- Expected only one call to {0}.
-
-
- Object instance was not created by Moq.
-
-
- Expression is not a property access: {0}
-
-
- Method {0}.{1} is public. Use strong-typed Expect overload instead:
+
+
+ Constructor arguments cannot be passed for interface mocks.
+
+
+ Constructor arguments cannot be passed for delegate mocks.
+
+
+ A matching constructor for the given arguments was not found on the mocked type.
+
+
+ Expected only one call to {0}.
+
+
+ Object instance was not created by Moq.
+
+
+ Expression is not a property access: {0}
+
+
+ Method {0}.{1} is public. Use strong-typed Expect overload instead:
mock.Setup(x => x.{1}());
-
-
- Member {0}.{1} does not exist.
-
-
- To specify a setup for public property {0}.{1}, use the typed overloads, such as:
+
+
+ Member {0}.{1} does not exist.
+
+
+ To specify a setup for public property {0}.{1}, use the typed overloads, such as:
mock.Setup(x => x.{1}).Returns(value);
mock.SetupGet(x => x.{1}).Returns(value); //equivalent to previous one
mock.SetupSet(x => x.{1}).Callback(callbackDelegate);
-
-
- Can't set return value for void method {0}.
-
-
- Member {0} is not supported for protected mocking.
-
-
- Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.
-
-
- Expression is not a method invocation: {0}
-
-
- Expected invocation on the mock at least once, but was never performed:
-
-
- Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.
-
-
- Can only add interfaces to the mock.
-
-
- Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
+
+
+ Can't set return value for void method {0}.
+
+
+ Member {0} is not supported for protected mocking.
+
+
+ Cannot raise a mocked event unless it has been associated (attached) to a concrete event in a mocked object.
+
+
+ Expression is not a method invocation: {0}
+
+
+ Expected invocation on the mock at least once, but was never performed:
+
+
+ Mock type has already been initialized by accessing its Object property. Adding interfaces must be done before that.
+
+
+ Can only add interfaces to the mock.
+
+
+ Cannot retrieve a mock with the given object type {0} as it's not the main type of the mock or any of its additional interfaces.
Please cast the argument to one of the supported types: {1}.
Remember that there's no generics covariance in the CLR, so your object must be one of these types in order for the call to succeed.
-
-
- Expected only {0} calls to {1}.
-
-
- Expression is not a property setter invocation.
-
-
- Value cannot be an empty string.
-
-
- Type {0} does not implement required interface {1}
-
-
- Type {0} does not from required type {1}
-
-
- Expected invocation on the mock at least {0} times, but was {2} times:
-
-
- Expected invocation on the mock at most {1} times, but was {2} times:
-
-
- Expected invocation on the mock at most once, but was {2} times:
-
-
- Expected invocation on the mock between {0} and {1} times (Inclusive), but was {2} times:
-
-
- Expected invocation on the mock exactly {0} times, but was {2} times:
-
-
- Expected invocation on the mock should never have been performed, but was {2} times:
-
-
- Expected invocation on the mock between {0} and {1} times (Exclusive), but was {2} times:
-
-
- Expected invocation on the mock once, but was {2} times:
-
-
- Out expression must evaluate to a constant value.
-
-
- Ref expression must evaluate to a constant value.
-
-
- LINQ method '{0}' not supported.
-
-
- Could not locate event for attach or detach method {0}.
-
-
- The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}
-
-
- Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}
-
-
- Property {0}.{1} does not have a setter.
-
-
- Property {0}.{1} does not have a getter.
-
-
- Unhandled binding type: {0}
-
-
- Unhandled expression type: {0}
-
-
- Delays have to be greater than zero to ensure an async callback is used.
-
-
- Expression is not an event attach or detach, or the event is declared in a class but not marked virtual.
-
-
- Invalid callback. Setup on method with parameters ({0}) cannot invoke callback with parameters ({1}).
-
-
- Minimum delay has to be lower than maximum delay.
-
-
- No invocations performed.
-
-
- No setups configured.
-
-
- Performed invocations:
-
-
- Unexpected translation of a member access: {0}
-
-
- Use ItExpr.IsNull<TValue> rather than a null argument value, as it prevents proper method lookup.
-
-
- Cannot set up {0}.{1} because it is not accessible to the proxy generator used by Moq:
+
+
+ Expected only {0} calls to {1}.
+
+
+ Expression is not a property setter invocation.
+
+
+ Value cannot be an empty string.
+
+
+ Type {0} does not implement required interface {1}
+
+
+ Type {0} does not from required type {1}
+
+
+ Expected invocation on the mock at least {0} times, but was {2} times:
+
+
+ Expected invocation on the mock at most {1} times, but was {2} times:
+
+
+ Expected invocation on the mock at most once, but was {2} times:
+
+
+ Expected invocation on the mock between {0} and {1} times (Inclusive), but was {2} times:
+
+
+ Expected invocation on the mock exactly {0} times, but was {2} times:
+
+
+ Expected invocation on the mock should never have been performed, but was {2} times:
+
+
+ Expected invocation on the mock between {0} and {1} times (Exclusive), but was {2} times:
+
+
+ Expected invocation on the mock once, but was {2} times:
+
+
+ Out expression must evaluate to a constant value.
+
+
+ Ref expression must evaluate to a constant value.
+
+
+ LINQ method '{0}' not supported.
+
+
+ Could not locate event for attach or detach method {0}.
+
+
+ The equals ("==" or "=" in VB) and the conditional 'and' ("&&" or "AndAlso" in VB) operators are the only ones supported in the query specification expression. Unsupported expression: {0}
+
+
+ Expression contains a call to a method which is not virtual (overridable in VB) or abstract. Unsupported expression: {0}
+
+
+ Property {0}.{1} does not have a setter.
+
+
+ Property {0}.{1} does not have a getter.
+
+
+ Unhandled binding type: {0}
+
+
+ Unhandled expression type: {0}
+
+
+ Delays have to be greater than zero to ensure an async callback is used.
+
+
+ Expression is not an event attach or detach, or the event is declared in a class but not marked virtual.
+
+
+ Invalid callback. Setup on method with parameters ({0}) cannot invoke callback with parameters ({1}).
+
+
+ Minimum delay has to be lower than maximum delay.
+
+
+ No invocations performed.
+
+
+ No setups configured.
+
+
+ Performed invocations:
+
+
+ Unexpected translation of a member access: {0}
+
+
+ Use ItExpr.IsNull<TValue> rather than a null argument value, as it prevents proper method lookup.
+
+
+ Cannot set up {0}.{1} because it is not accessible to the proxy generator used by Moq:
{2}
-
-
- Invalid callback. This overload of the "Callback" method only accepts "void" (C#) or "Sub" (VB.NET) delegates with parameter types matching those of the set up method.
-
-
- Invalid callback. This overload of the "Returns" method only accepts non-"void" (C#) or "Function" (VB.NET) delegates with parameter types matching those of the set up method.
-
-
- Type {0} does not have matching protected member: {1}
-
-
- Invalid callback. Setup on method with return type ({0}) cannot invoke callback with return type ({1}).
-
-
- Invalid callback. Setup on method with {0} parameter(s) cannot invoke callback with different number of parameters ({1}).
-
-
- {0}:
+
+
+ Invalid callback. This overload of the "Callback" method only accepts "void" (C#) or "Sub" (VB.NET) delegates with parameter types matching those of the set up method.
+
+
+ Invalid callback. This overload of the "Returns" method only accepts non-"void" (C#) or "Function" (VB.NET) delegates with parameter types matching those of the set up method.
+
+
+ Type {0} does not have matching protected member: {1}
+
+
+ Invalid callback. Setup on method with return type ({0}) cannot invoke callback with return type ({1}).
+
+
+ Invalid callback. Setup on method with {0} parameter(s) cannot invoke callback with different number of parameters ({1}).
+
+
+ {0}:
This mock failed verification due to the following unverified invocations:
-
-
- CallBase cannot be used with Delegate mocks.
-
-
- {0}:
+
+
+ CallBase cannot be used with Delegate mocks.
+
+
+ {0}:
This mock failed verification due to the following:
-
-
- The mock repository failed verification due to the following:
-
-
- {0}:
-
-
- Unsupported expression: {0}
+
+
+ The mock repository failed verification due to the following:
+
+
+ {0}:
+
+
+ Unsupported expression: {0}
{1}
-
-
- The return type of the last member shown above is not mockable.
-
-
- The next member after the last one shown above is non-virtual, sealed, or not visible to the proxy factory.
-
-
- Could not determine the correct positions for all argument matchers ({0} in total) used in a call to this method: {1}.
+
+
+ The return type of the last member shown above is not mockable.
+
+
+ The next member after the last one shown above is non-virtual, sealed, or not visible to the proxy factory.
+
+
+ Could not determine the correct positions for all argument matchers ({0} in total) used in a call to this method: {1}.
This could be caused by an unrecognized type conversion, coercion, narrowing, or widening, and is most likely a bug in Moq. Please report your use case to the Moq team.
-
-
- Extension methods (here: {0}) may not be used in setup / verification expressions.
-
-
- Non-overridable members (here: {0}) may not be used in setup / verification expressions.
-
-
- Static members (here: {0}) may not be used in setup / verification expressions.
-
-
- No protected method {0}.{1} found whose signature is compatible with the provided arguments ({2}).
-
-
- Expression is not an event add: {0}
-
-
- Expression is not an event remove: {0}
-
+
+
+ Extension methods (here: {0}) may not be used in setup / verification expressions.
+
+
+ Non-overridable members (here: {0}) may not be used in setup / verification expressions.
+
+
+ Static members (here: {0}) may not be used in setup / verification expressions.
+
+
+ No protected method {0}.{1} found whose signature is compatible with the provided arguments ({2}).
+
+
+ Expression is not an event add: {0}
+
+
+ Expression is not an event remove: {0}
+
\ No newline at end of file