summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Assumes.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-09 08:29:36 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-09 08:29:36 -0800
commitcd00f47e375106db6b04a32dff669e5b87c5affb (patch)
treeca2d8625561f2084250c3cebf6eae3813f71c8b2 /src/DotNetOpenAuth.Core/Assumes.cs
parentb6a394fdde0b5ba09d3836ea80dd201f79e90a3a (diff)
downloadDotNetOpenAuth-cd00f47e375106db6b04a32dff669e5b87c5affb.zip
DotNetOpenAuth-cd00f47e375106db6b04a32dff669e5b87c5affb.tar.gz
DotNetOpenAuth-cd00f47e375106db6b04a32dff669e5b87c5affb.tar.bz2
Fixed FxCop messages in DNOA.Core #68
Diffstat (limited to 'src/DotNetOpenAuth.Core/Assumes.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Assumes.cs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/DotNetOpenAuth.Core/Assumes.cs b/src/DotNetOpenAuth.Core/Assumes.cs
index 8d8286e..b61fbd4 100644
--- a/src/DotNetOpenAuth.Core/Assumes.cs
+++ b/src/DotNetOpenAuth.Core/Assumes.cs
@@ -8,7 +8,9 @@ namespace DotNetOpenAuth {
using System;
using System.Collections.Generic;
using System.Diagnostics;
+ using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
+ using System.Globalization;
using System.Linq;
using System.Text;
@@ -37,7 +39,7 @@ namespace DotNetOpenAuth {
[Pure, DebuggerStepThrough]
internal static void True(bool condition, string unformattedMessage, params object[] args) {
if (!condition) {
- Fail(String.Format(unformattedMessage, args));
+ Fail(String.Format(CultureInfo.CurrentCulture, unformattedMessage, args));
}
}
@@ -57,6 +59,7 @@ namespace DotNetOpenAuth {
/// <summary>
/// An internal error exception that should never be caught.
/// </summary>
+ [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This exception should never be caught.")]
[Serializable]
private class InternalErrorException : Exception {
/// <summary>
@@ -69,15 +72,8 @@ namespace DotNetOpenAuth {
/// Initializes a new instance of the <see cref="InternalErrorException"/> class.
/// </summary>
/// <param name="message">The message.</param>
- internal InternalErrorException(string message) : base(message) {
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="InternalErrorException"/> class.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="inner">The inner exception.</param>
- internal InternalErrorException(string message, Exception inner) : base(message, inner) {
+ internal InternalErrorException(string message)
+ : base(message) {
}
/// <summary>