forked from TNG/ArchUnitNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleArchUnitTestPuml.cs
More file actions
29 lines (26 loc) · 900 Bytes
/
ExampleArchUnitTestPuml.cs
File metadata and controls
29 lines (26 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Text;
using ArchUnitNET.Domain;
using ArchUnitNET.Fluent;
using ArchUnitNET.Loader;
using ArchUnitNET.xUnit;
using ExampleTest.PlantUml.Addresses;
using Xunit;
using static ArchUnitNET.Fluent.ArchRuleDefinition;
namespace ExampleTest
{
public class ExampleArchUnitTestPuml
{
private static readonly Architecture Architecture = new ArchLoader()
.LoadNamespacesWithinAssembly(typeof(Address).Assembly, "ExampleTest.PlantUml")
.Build();
[Fact]
public void ClassesShouldAdhereToShoppingExampleConsideringOnlyDependenciesInDiagram()
{
var filename = "./Resources/shopping_example.puml";
IArchRule adhereToPlantUmlDiagram = Types().Should().AdhereToPlantUmlDiagram(filename);
adhereToPlantUmlDiagram.Check(Architecture);
}
}
}