Skip to content

Commit

Permalink
fixup! Switch FindDataContextTarget resource binding detection to ded…
Browse files Browse the repository at this point in the history
…icated property
  • Loading branch information
exyi committed Dec 28, 2024
1 parent 973efd0 commit f7d63d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tests/ControlTests/MarkupControlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ @wrapperTag div
));

StringAssert.Contains(exception.Message, "cannot be used in resource-binding only data context, because it uses value bindings on the data context.");
Assert.AreEqual("/tmp/MarkupControl_ValueInResource_Error.dothtml", exception.FileName);

// is dothtml (not dotcontrol), otherwise it's impossible to find where is it being a problem
StringAssert.EndsWith("MarkupControl_ValueInResource_Error.dothtml", exception.FileName);

Check failure on line 147 in src/Tests/ControlTests/MarkupControlTests.cs

View workflow job for this annotation

GitHub Actions / .NET unit tests (ubuntu-latest)

MarkupControl_ValueInResource_Error

StringAssert.EndsWith failed. String 'MarkupControl_ValueInResource_Error.dothtml' does not end with string '/tmp/MarkupControl_ValueInResource_Error.dothtml'. .

Check failure on line 147 in src/Tests/ControlTests/MarkupControlTests.cs

View workflow job for this annotation

GitHub Actions / .NET unit tests (windows-2022)

MarkupControl_ValueInResource_Error

StringAssert.EndsWith failed. String 'MarkupControl_ValueInResource_Error.dothtml' does not end with string 'C:\Users\runneradmin\AppData\Local\Temp\MarkupControl_ValueInResource_Error.dothtml'. .

Check failure on line 147 in src/Tests/ControlTests/MarkupControlTests.cs

View workflow job for this annotation

GitHub Actions / .NET unit tests (windows-2022)

MarkupControl_ValueInResource_Error

StringAssert.EndsWith failed. String 'MarkupControl_ValueInResource_Error.dothtml' does not end with string 'C:\Users\runneradmin\AppData\Local\Temp\MarkupControl_ValueInResource_Error.dothtml'. .

Check failure on line 147 in src/Tests/ControlTests/MarkupControlTests.cs

View workflow job for this annotation

GitHub Actions / .NET unit tests (macOS-latest)

MarkupControl_ValueInResource_Error

StringAssert.EndsWith failed. String 'MarkupControl_ValueInResource_Error.dothtml' does not end with string '/var/folders/95/0ydz4d79163427j3k5crp3fh0000gn/T/MarkupControl_ValueInResource_Error.dothtml'. .
}

[TestMethod]
Expand Down

0 comments on commit f7d63d9

Please sign in to comment.