summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-16 20:48:46 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-16 20:48:46 -0700
commit7ca7de5ec67f3a386a53535864e381b38c823581 (patch)
tree476459163bb341ad45513244b84e91632bdad21c /src
parente2faa0032bcd76d7cc83e81bac7d9a69dfeb35d1 (diff)
downloadDotNetOpenAuth-7ca7de5ec67f3a386a53535864e381b38c823581.zip
DotNetOpenAuth-7ca7de5ec67f3a386a53535864e381b38c823581.tar.gz
DotNetOpenAuth-7ca7de5ec67f3a386a53535864e381b38c823581.tar.bz2
Added a bit more timing text to the test.
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs b/src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs
index 71a8e14..5a99adc 100644
--- a/src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs
+++ b/src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs
@@ -263,6 +263,7 @@ namespace DotNetOpenAuth.Test.Messaging {
var absoluteDifference = TimeSpan.FromTicks(Math.Abs(totalMismatchTimer.ElapsedTicks - almostMatchTimer.ElapsedTicks));
double actualFactor = (double)absoluteDifference.Ticks / averageTimeTicks;
Assert.IsTrue(absoluteDifference <= tolerableDifference, "A total mismatch took {0} but a near match took {1}, which is too different to be indistinguishable. The tolerable difference is {2} but the actual difference is {3}. This represents a difference of {4}%, beyond the tolerated {5}%.", totalMismatchTimer.Elapsed, almostMatchTimer.Elapsed, tolerableDifference, absoluteDifference, Math.Round(actualFactor * 100), Math.Round(toleranceFactor * 100));
+ Console.WriteLine("A total mismatch took {0} and a near match took {1}. The tolerable difference is {2}, and the actual difference is {3}. This represents a difference of {4}%, within the tolerated {5}%.", totalMismatchTimer.Elapsed, almostMatchTimer.Elapsed, tolerableDifference, absoluteDifference, Math.Round(actualFactor * 100), Math.Round(toleranceFactor * 100));
Console.WriteLine("The equality test execution time difference was only {0}%, within the tolerable {1}%", Math.Round(100 * actualFactor), Math.Round(toleranceFactor * 100));
}