public async Task ReturnsBreakingWhenReturnTypeChanged()
        {
            var oldCode = new List <CodeSource>
            {
                new(SingleField)
            };
            var newCode = new List <CodeSource>
            {
                new(SingleField.Replace("string MyField", "bool MyField"))
            };

            var options = OptionsFactory.BuildOptions();

            var result = await _calculator.CalculateChanges(oldCode, newCode, options, CancellationToken.None)
                         .ConfigureAwait(false);

            result.ChangeType.Should().Be(SemVerChangeType.Breaking);
        }
        public async Task EvaluatesChangeOfModifiers(string oldModifiers, string newModifiers,
                                                     SemVerChangeType expected)
        {
            var oldCode = new List <CodeSource>
            {
                new(SingleField.Replace("string MyField", oldModifiers + " string MyField"))
            };
            var newCode = new List <CodeSource>
            {
                new(SingleField.Replace("string MyField", newModifiers + " string MyField"))
            };

            var options = OptionsFactory.BuildOptions();

            var result = await _calculator.CalculateChanges(oldCode, newCode, options, CancellationToken.None)
                         .ConfigureAwait(false);

            result.ChangeType.Should().Be(expected);
        }