File: BrokeredServices\DescriptorsTests.cs
Web Access
Project: src\src\LanguageServer\Microsoft.CodeAnalysis.LanguageServer.UnitTests\Microsoft.CodeAnalysis.LanguageServer.UnitTests.csproj (Microsoft.CodeAnalysis.LanguageServer.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.
 
using Microsoft.CodeAnalysis.BrokeredServices;
using Microsoft.CodeAnalysis.LanguageServer.BrokeredServices.Services;
using Xunit;
 
namespace Microsoft.CodeAnalysis.LanguageServer.UnitTests.BrokeredServices;
 
public sealed class DescriptorsTests
{
    [Fact]
    public void RemoteServicesToRegister_IncludesLegacyHotReloadServices()
    {
        Assert.Contains(BrokeredServiceDescriptors.DebuggerManagedHotReloadServiceLegacy.Moniker, Descriptors.RemoteServicesToRegister.Keys);
        Assert.Contains(BrokeredServiceDescriptors.HotReloadLoggerServiceLegacy.Moniker, Descriptors.RemoteServicesToRegister.Keys);
    }
 
    [Fact]
    public void RemoteServicesToRegister_IncludesHotReloadAgentServices()
    {
        Assert.Contains(BrokeredServiceDescriptors.HotReloadSessionNotificationService.Moniker, Descriptors.RemoteServicesToRegister.Keys);
        Assert.Contains(BrokeredServiceDescriptors.ManagedHotReloadAgentManagerService.Moniker, Descriptors.RemoteServicesToRegister.Keys);
        Assert.Contains(BrokeredServiceDescriptors.GenericHotReloadAgentManagerService.Moniker, Descriptors.RemoteServicesToRegister.Keys);
    }
}