Skip to content

Conversation

rmarinho
Copy link
Member

Description of Change

Using dotnet-codetesting to increase coverage.

@rmarinho rmarinho added the area-testing Unit tests, device tests label Oct 10, 2025
[Author("Code Testing Agent 0.4.133-alpha+a413c4336c")]
[Category("auto-generated")]
[Category("ProductionBugSuspected")]
public void GetWarningDisable_NullXmlDocument_ThrowsArgumentNullException()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Could you review?

Example, GetWarningDisable_NullXmlDocument_ThrowsArgumentNullException.

Expected: <System.ArgumentNullException>
But was:  <System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Maui.Controls.SourceGen.CodeBehindCodeWriter.GetWarningDisable(XmlDocument xmlDoc) in //src/Controls/src/SourceGen/CodeBehindCodeWriter.cs:line 379
at Microsoft.Maui.Controls.SourceGen.UnitTests.CodeBehindCodeWriterTests.<>c__DisplayClass0_0.<GetWarningDisable_NullXmlDocument_ThrowsArgumentNullException>b__0() in //src/Controls/tests/SourceGen.UnitTests/CodeBehindCodeWriterTests.cs:line 30
at NUnit.Framework.Assert.Throws(IResolveConstraint expression, TestDelegate code, String message, Object[] args)>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-testing Unit tests, device tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants