public void TryGet_DoesNotExist_ReturnsFalse()
        {
            // Arrange
            var uriProvider = new DefaultFileUriProvider(Mock.Of <ITextDocumentFactoryService>());

            // Act
            var result = uriProvider.TryGet(TextBuffer, out var uri);

            // Assert
            Assert.False(result);
            Assert.Null(uri);
        }
        public void AddOrUpdate_Adds()
        {
            // Arrange
            var expectedUri = new Uri("C:/path/to/file.razor");
            var uriProvider = new DefaultFileUriProvider(Mock.Of <ITextDocumentFactoryService>());

            // Act
            uriProvider.AddOrUpdate(TextBuffer, expectedUri);

            // Assert
            Assert.True(uriProvider.TryGet(TextBuffer, out var uri));
            Assert.Same(expectedUri, uri);
        }
        public void TryGet_Exists_ReturnsTrue()
        {
            // Arrange
            var expectedUri = new Uri("C:/path/to/file.razor");
            var uriProvider = new DefaultFileUriProvider(Mock.Of <ITextDocumentFactoryService>(MockBehavior.Strict));

            uriProvider.AddOrUpdate(TextBuffer, expectedUri);

            // Act
            var result = uriProvider.TryGet(TextBuffer, out var uri);

            // Assert
            Assert.True(result);
            Assert.Same(expectedUri, uri);
        }