|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Aspire.Hosting.Dcp.Model;
namespace Aspire.Hosting.Tests;
public class DcpVisibilityTests
{
[Fact]
public void EnsureNoTypesFromDcpNamespaceExceptExecutableLaunchConfigurationArePublic()
{
var hostingAssembly = typeof(DistributedApplication).Assembly;
var types = hostingAssembly.GetExportedTypes();
var dcpNamespaceTypes = types.Where(t => t.FullName!.Contains("Dcp", StringComparison.OrdinalIgnoreCase));
Assert.Equal(typeof(ExecutableLaunchConfiguration), Assert.Single(dcpNamespaceTypes));
}
}
|