public void TestFileLoad()
{
IEnumerable<string> nullFile = null;
IEnumerable<string> notNullFile = null;
try
{
_handler.LoadFile(_info);
notNullFile = _handler.GetFileFromMemory(_info);
_handler.LoadFile(_fileNonExistent);
nullFile = _handler.GetFileFromMemory(_fileNonExistent);
}
catch (FileNotFoundException)
{
Assert.IsNotNull(notNullFile);
Assert.IsNull(nullFile);
}
IEnumerator<string> enumerator = notNullFile.GetEnumerator();
enumerator.MoveNext();
Assert.AreEqual("Push me", enumerator.Current);
enumerator.MoveNext();
Assert.AreEqual("And then just touch me", enumerator.Current);
}