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
class QAspekt : Aspekt.Aspect { public override void OnException(MethodArguments args, Exception e) { Console.WriteLine($"Arguments: {args.Arguments.ElementAt(0).Value} Exception: {e.Message}"); } } [PropertyInvariant(nameof(DontNullMe), Contract.Constraint.NotNull)] class ThrairPrinter { private string DontNullMe { get; set; } = "Q"; [QAspekt] public void Print(String str) { DontNullMe = null; Console.WriteLine(str); } }
Console
Hello World Arguments: Hello World Exception: System.Void AspektTester.ThrairPrinter::set_DontNullMe() post-condition property 'DontNullMe' failed invariant value != null.
The text was updated successfully, but these errors were encountered:
mvpete
No branches or pull requests
Console
The text was updated successfully, but these errors were encountered: