public void IfReloadFromDirAndHelpTextIsUnrecognizedThenThrowsChocoVersionUnknownException() { _fileStorageService.Stub(fss => fss.GetDirectories(Arg <string> .Is.Anything)).Return(new string[] { }); Assert.Throws <ChocolateyVersionUnknownException>(() => _chocolateyService.GetEventRaiser(x => x.OutputChanged += null).Raise("Not a valid version")); }