public void PossibleDivergence_Import_ReturnsTrue()
        {
            // Arrange
            var old           = ImportDocument;
            var @new          = UpdateDocument(ImportDocument.FilePath, SourceText.From(string.Empty));
            var impactChecker = new DefaultDocumentDivergenceChecker();

            // Act
            var result = impactChecker.PossibleDivergence(old, @new);

            // Assert
            Assert.True(result);
        }
        private async Task <bool> GetDivergenceAsync(string before, string after)
        {
            var old  = UpdateDocument(ComponentDocument.FilePath, SourceText.From(before));
            var @new = UpdateDocument(ComponentDocument.FilePath, SourceText.From(after));

            // Prime the documents source texts
            await @new.GetTextAsync();

            var impactChecker = new DefaultDocumentDivergenceChecker();
            var result        = impactChecker.PossibleDivergence(old, @new);

            return(result);
        }
        public async Task PossibleDivergence_Component_UnretrievableNewSourceText_ReturnsTrue()
        {
            // Arrange
            var old  = ComponentDocument;
            var @new = UpdateDocument(ComponentDocument.FilePath, SourceText.From(string.Empty));

            // Prime the documents source text
            await old.GetTextAsync();

            var impactChecker = new DefaultDocumentDivergenceChecker();

            // Act
            var result = impactChecker.PossibleDivergence(old, @new);

            // Assert
            Assert.True(result);
        }