public void SpeciesFileIsValid(string speciesFile) { var result = TransformationFileVerifier.VerifyFile <Species>(speciesFile); // Guarding ErrorReason here, since it throws if the result was successful. Assert.True(result.IsSuccess, result.IsSuccess ? string.Empty : result.Error.Message); }
public void TransformationFileIsValid(string transformationFile) { var result = TransformationFileVerifier.VerifyFile <Transformation>(transformationFile); Assert.True(result.IsSuccess, result.IsSuccess ? string.Empty : result.Error.Message); }