We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would expect this test not to fail in a code base with classes and structs. It would be nice to have Structs separately.
using ArchUnitNET.Fluent; using ArchUnitNET.NUnit; using NUnit.Framework; using static ArchUnitNET.Fluent.ArchRuleDefinition; namespace PostSolutionTests { class ClassesShouldNotBeStructs { private static readonly IArchRule ClassesShouldNotBeStructsRule = Classes().Should().NotBeStructs(); [Test, Category("ArchUnitTest")] public static void ClassesShouldNotBeStructsTests() => ClassesShouldNotBeStructsRule.Check(Architecture.Dialux); } }
The text was updated successfully, but these errors were encountered:
Thanks for the valuable input. I'd assume that we have the same problem with records.
Sorry, something went wrong.
Afaik records are classes internally, though there might be some way to discern them through some attributes or so.
Released in 0.9.0
Successfully merging a pull request may close this issue.
I would expect this test not to fail in a code base with classes and structs.
It would be nice to have Structs separately.
The text was updated successfully, but these errors were encountered: