mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-28 20:47:58 +08:00
22 lines
645 B
C#
22 lines
645 B
C#
using System.Linq;
|
|
using AgileConfig.Server.Application;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace AgileConfig.Server.ApplicationTests;
|
|
|
|
[TestClass]
|
|
public sealed class ApplicationLayerDependencyTests
|
|
{
|
|
[TestMethod]
|
|
public void ApplicationAssembly_DoesNotReferenceHttpOrApisiteAssemblies()
|
|
{
|
|
var references = typeof(ApplicationResult).Assembly
|
|
.GetReferencedAssemblies()
|
|
.Select(x => x.Name)
|
|
.ToList();
|
|
|
|
Assert.IsFalse(references.Any(x => x.StartsWith("Microsoft.AspNetCore")));
|
|
Assert.DoesNotContain(references, "AgileConfig.Server.Apisite");
|
|
}
|
|
}
|