Index: Src/GoogleApis.Tests/Apis/Utils/ExponentialBackOffTest.cs
===================================================================
--- a/Src/GoogleApis.Tests/Apis/Utils/ExponentialBackOffTest.cs
+++ b/Src/GoogleApis.Tests/Apis/Utils/ExponentialBackOffTest.cs
@@ -25,11 +25,11 @@
namespace Google.Apis.Tests.Apis.Utils
{
- /// Tests for .
+ /// Tests for .
[TestFixture]
public class ExponentialBackOffTest
{
- /// Tests setting invalid value as currentRetry parameter.
+ /// Tests setting invalid value as currentRetry parameter.
[Test]
public void GetNextBackOff_InvalidValue()
{
@@ -49,21 +49,21 @@
catch (ArgumentOutOfRangeException) { }
}
- /// Tests constructor with invalid time span object (<0 or >1sec).
+ /// Tests constructor with invalid time span object (less then 0 or greater than 1sec).
[Test]
public void Constructor_InvalidValue()
{
- // invalid delta
+ // Invalid delta.
SubtestConstructor_InvalidValue(TimeSpan.FromMilliseconds(-1));
SubtestConstructor_InvalidValue(TimeSpan.FromDays(-1));
SubtestConstructor_InvalidValue(TimeSpan.FromMilliseconds(1001));
- // invalid max
+ // Invalid max.
SubtestConstructor_InvalidValue(TimeSpan.FromMilliseconds(500), -1);
SubtestConstructor_InvalidValue(TimeSpan.FromMilliseconds(500), 21);
}
- /// A helper subtest to test invalid value given to the constructor.
+ /// A helper subtest to test invalid value given to the constructor.
private void SubtestConstructor_InvalidValue(TimeSpan ts, int max = 10)
{
try
@@ -74,7 +74,7 @@
catch (ArgumentOutOfRangeException) { }
}
- /// Tests next back-off time span maximum, minimum and average values for tries 1 to 15.
+ /// Tests next back-off time span maximum, minimum and average values for tries 1 to 15.
[Test]
public void GetNextBackOff_Retry1To15()
{
@@ -86,10 +86,10 @@
}
}
- /// Test helper for testing retrying using exponential back-off.
+ /// Test helper for testing retrying using exponential back-off.
/// Index of current retry.
/// The delta the exponential back-off uses.
- /// for more details.
+ /// for more details.
///
/// Used for checking the average result of the input retry [In milliseconds].
private void SubtestGetNextBackOff(int retry, Nullable delta = null, int epsilon = 20)
@@ -113,7 +113,7 @@
Assert.That(avarage, Is.InRange(expectedMiliis - epsilon, expectedMiliis + epsilon));
}
- /// Tests next back-off time span with specific maximum of retries.
+ /// Tests next back-off time span with specific maximum of retries.
[Test]
public void GetNextBackOff_MaxNumRetries()
{
@@ -122,7 +122,7 @@
SubtestGetNextBackOff_MaxNumRetries(11);
}
- /// A helper test for testing the GetNextBackOff logic.
+ /// A helper test for testing the GetNextBackOff logic.
private void SubtestGetNextBackOff_MaxNumRetries(int max)
{
ExponentialBackOff backOff = new ExponentialBackOff(TimeSpan.Zero, max);