Volatile.Write(ref s_inputEncoding, (Encoding)value.Clone());
- // We need to reinitialize Console.In in the next call to s_in
+ // We need to reinitialize 'Console.In' in the next call to s_in
// This will discard the current StreamReader, potentially
// losing buffered data.
Volatile.Write(ref s_in, null);
// Note: this reverts the stack
Stack currentStack = new Stack(input);
- // The expected values are passed in in the order they are supposed to be in the original stack
+ // The expected values are passed in the order they are supposed to be in the original stack
// so we need to match them from the end of the array since the stack is also reversed
for (int i = expectedContents.Length - 1; i >= 0; i--)
{
// Should start with the root and shouldn't have a separator after the root
Assert.StartsWith(root, recursed.Current);
Assert.True(recursed.Current.LastIndexOf(Path.DirectorySeparatorChar) < root.Length,
- $"should have no separators pasth the root '{root}' in in '{recursed.Current}'");
+ $"should have no separators past the root '{root}' in '{recursed.Current}'");
}
Assert.NotNull(recursed.LastDirectory);