File: ProjectSystemShim\MockRuleSetFile.vb
Web Access
Project: src\src\VisualStudio\Core\Test\Microsoft.VisualStudio.LanguageServices.UnitTests.vbproj (Microsoft.VisualStudio.LanguageServices.UnitTests)
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
 
Imports System.Collections.Immutable
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.Workspaces.ProjectSystem
Imports Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
 
Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim
    Public Class MockRuleSetFile
        Implements IRuleSetFile
 
        Private ReadOnly _generalOption As ReportDiagnostic
        Private ReadOnly _specificOptions As ImmutableDictionary(Of String, ReportDiagnostic)
 
        Public Sub New(generalOption As ReportDiagnostic, specificOptions As ImmutableDictionary(Of String, ReportDiagnostic))
            _generalOption = generalOption
            _specificOptions = specificOptions
        End Sub
 
        Public ReadOnly Property FilePath As String Implements IRuleSetFile.FilePath
            Get
                Throw New NotImplementedException()
            End Get
        End Property
 
        Public Event UpdatedOnDisk As EventHandler Implements IRuleSetFile.UpdatedOnDisk
 
        Public Function GetException() As Exception Implements IRuleSetFile.GetException
            Throw New NotImplementedException()
        End Function
 
        Public Function GetGeneralDiagnosticOption() As ReportDiagnostic Implements IRuleSetFile.GetGeneralDiagnosticOption
            Return _generalOption
        End Function
 
        Public Function GetSpecificDiagnosticOptions() As ImmutableDictionary(Of String, ReportDiagnostic) Implements IRuleSetFile.GetSpecificDiagnosticOptions
            Return _specificOptions
        End Function
    End Class
End Namespace