Class MockReaderWrapper
Wraps a , and can throw random or fixed
exceptions, and spoon feed read chars.
Inheritance
System.Object
MockReaderWrapper
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockReaderWrapper : TextReader
Constructors
|
Improve this Doc
View Source
MockReaderWrapper(Random, TextReader)
Declaration
public MockReaderWrapper(Random random, TextReader input)
Parameters
Type |
Name |
Description |
Random |
random |
|
TextReader |
input |
|
Methods
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
|
Improve this Doc
View Source
IsMyEvilException(Exception)
Declaration
public static bool IsMyEvilException(Exception t)
Parameters
Type |
Name |
Description |
Exception |
t |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Read()
Declaration
public override int Read()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Read(Char[], Int32, Int32)
Declaration
public override int Read(char[] cbuf, int off, int len)
Parameters
Type |
Name |
Description |
System.Char[] |
cbuf |
|
System.Int32 |
off |
|
System.Int32 |
len |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ThrowExcAfterChar(Int32)
Throw an exception after reading this many chars.
Declaration
public virtual void ThrowExcAfterChar(int charUpto)
Parameters
Type |
Name |
Description |
System.Int32 |
charUpto |
|
|
Improve this Doc
View Source
ThrowExcNext()
Declaration
public virtual void ThrowExcNext()