Skip to content

Commit a428ef6

Browse files
chore: fix snapshots
Signed-off-by: Alexander Linne <[email protected]>
1 parent 57be322 commit a428ef6

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

ArchUnitNETTests/Fluent/Syntax/Elements/ObjectsShouldTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ public async Task OnlyDependOnTest()
28902890
should = Types().That().Are(helper.ClassWithMultipleDependencies).Should();
28912891
should
28922892
.OnlyDependOn(typeof(AttributeNamespace.ClassWithoutAttributes))
2893-
.AssertNoViolations(helper);
2893+
.AssertOnlyViolations(helper);
28942894

28952895
helper.AddSnapshotHeader("Empty arguments");
28962896
should = Types().That().Are(helper.ClassWithMultipleDependencies).Should();

ArchUnitNETTests/Fluent/Syntax/Elements/Snapshots/ObjectsShouldTests.CallAnyTest.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Message:
176176

177177

178178

179-
===== Multiple inputs =====
179+
===== Input with multiple dependencies =====
180180

181181
Query: Method members that are "System.Void MethodDependencyNamespace.MethodDependencyClass::MethodWithMultipleDependencies()" should call "System.Void MethodDependencyNamespace.MethodDependencyClass::CalledMethod1()" or "System.Void MethodDependencyNamespace.MethodDependencyClass...
182182
Result: True

ArchUnitNETTests/Fluent/Syntax/Elements/Snapshots/ObjectsShouldTests.NotHaveAnyAttributesWithArgumentsTest.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Message:
6666

6767

6868

69-
===== Type without attrubites =====
69+
===== Type without attributes =====
7070

7171
Query: Types that are "AttributeNamespace.ClassWithoutAttributes" should not have any attributes with arguments "Argument"
7272
Result: True

ArchUnitNETTests/Fluent/Syntax/Elements/Snapshots/ObjectsShouldTests.OnlyDependOnTest.verified.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,14 @@ Message:
141141

142142
===== Type outside of architecture =====
143143

144-
Query: Types that are "TypeDependencyNamespace.BaseClass" should only depend on "AttributeNamespace.ClassWithoutAttributes"
145-
Result: True
146-
Description: TypeDependencyNamespace.BaseClass passed
144+
Query: Types that are "TypeDependencyNamespace.ClassWithMultipleDependencies" should only depend on "AttributeNamespace.ClassWithoutAttributes"
145+
Result: False
146+
Description: TypeDependencyNamespace.ClassWithMultipleDependencies does depend on System.Object and System.Runtime.CompilerServices.NullableContextAttribute and System.Runtime.CompilerServices.NullableAttribute and TypeDependencyNamespace.BaseClassWithMember and TypeDependencyNamespace.OtherBaseClass
147147
Message:
148-
All Evaluations passed
148+
"Types that are "TypeDependencyNamespace.ClassWithMultipleDependencies" should only depend on "AttributeNamespace.ClassWithoutAttributes"" failed:
149+
TypeDependencyNamespace.ClassWithMultipleDependencies does depend on System.Object and System.Runtime.CompilerServices.NullableContextAttribute and System.Runtime.CompilerServices.NullableAttribute and TypeDependencyNamespace.BaseClassWithMember and TypeDependencyNamespace.OtherBaseClass
150+
151+
149152

150153
===== Empty arguments =====
151154

0 commit comments

Comments
 (0)