public void matches_version_spec_when_spec_is_null_just_returns_false() { var dep = new Dependency("Test"); dep.MatchesVersionSpec(x => x.MinVersion != null).ShouldBeFalse(); }
public bool Matches(Dependency dependency) { return dependency.MatchesVersionSpec(spec => spec.MinVersion != null && spec.MaxVersion == null); }