Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public AnalysisResult Analyze(Resume resume) {
var oldAnalyzer = new LegacyAnalyzer();
var newAnalyzer = new ExperimentalAnalyzer();
return Scientist.Science<AnalysisResult>("Simple Experiment",
experiment =>
{
// ONLY DO THIS FOR UNIT TESTS!
experiment.ThrowOnMismatches = true;
experiment.Use(() => oldAnalyzer.Analyze(resume));
experiment.Try(() => newAnalyzer.Analyze(resume));
experiment.Compare((x, y) => x.Score == y.Score);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.