Skip to content

Commit

Permalink
chore: fix snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Linne <[email protected]>
  • Loading branch information
alexanderlinne committed Sep 3, 2024
1 parent 57be322 commit a428ef6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ public async Task OnlyDependOnTest()
should = Types().That().Are(helper.ClassWithMultipleDependencies).Should();
should
.OnlyDependOn(typeof(AttributeNamespace.ClassWithoutAttributes))
.AssertNoViolations(helper);
.AssertOnlyViolations(helper);

helper.AddSnapshotHeader("Empty arguments");
should = Types().That().Are(helper.ClassWithMultipleDependencies).Should();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Message:



===== Multiple inputs =====
===== Input with multiple dependencies =====

Query: Method members that are "System.Void MethodDependencyNamespace.MethodDependencyClass::MethodWithMultipleDependencies()" should call "System.Void MethodDependencyNamespace.MethodDependencyClass::CalledMethod1()" or "System.Void MethodDependencyNamespace.MethodDependencyClass...
Result: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Message:



===== Type without attrubites =====
===== Type without attributes =====

Query: Types that are "AttributeNamespace.ClassWithoutAttributes" should not have any attributes with arguments "Argument"
Result: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,14 @@ Message:

===== Type outside of architecture =====

Query: Types that are "TypeDependencyNamespace.BaseClass" should only depend on "AttributeNamespace.ClassWithoutAttributes"
Result: True
Description: TypeDependencyNamespace.BaseClass passed
Query: Types that are "TypeDependencyNamespace.ClassWithMultipleDependencies" should only depend on "AttributeNamespace.ClassWithoutAttributes"
Result: False
Description: TypeDependencyNamespace.ClassWithMultipleDependencies does depend on System.Object and System.Runtime.CompilerServices.NullableContextAttribute and System.Runtime.CompilerServices.NullableAttribute and TypeDependencyNamespace.BaseClassWithMember and TypeDependencyNamespace.OtherBaseClass
Message:
All Evaluations passed
"Types that are "TypeDependencyNamespace.ClassWithMultipleDependencies" should only depend on "AttributeNamespace.ClassWithoutAttributes"" failed:
TypeDependencyNamespace.ClassWithMultipleDependencies does depend on System.Object and System.Runtime.CompilerServices.NullableContextAttribute and System.Runtime.CompilerServices.NullableAttribute and TypeDependencyNamespace.BaseClassWithMember and TypeDependencyNamespace.OtherBaseClass



===== Empty arguments =====

Expand Down

0 comments on commit a428ef6

Please sign in to comment.