public async Task OverrideRemoveTypeToMinor() { var command = new CompareCommand { Assembly = "Local.dll", PackageName = "Major" }; _fixture.Settings.RuleOverrides["TypeRemovedRule"] = RuleOverrideType.Minor; var report = await _runner.Compare(command); _testOutputHelper.WriteLine(report); using (var poly = PAssert.Poly()) { poly.IsTrue(() => report != null); poly.IsTrue(() => report.Contains("- (Minor) `ClassToRemove` is no longer present or accessible.")); } }
public async Task CompareMajorChange() { var command = new CompareCommand { Assembly = "Local.dll", PackageName = "Minor" }; var report = await _runner.Compare(command); _testOutputHelper.WriteLine(report); using (var poly = PAssert.Poly()) { poly.IsTrue(() => report != null); poly.IsTrue(() => report.Contains("always bump major")); } }