Skip to content

Using Variables Inside Strings in C#: update sample to .NET 11 - #2440

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67034-csharp-using-variables-inside-strings
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67034-csharp-using-variables-inside-strings

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves both projects from net6.0 to net11.0 and updates the test packages to Microsoft.NET.Test.Sdk 18.12.0, MSTest 4.5.3 and coverlet.collector 10.1.1. Program.cs now runs the article's examples in reading order and prints each result, MyClass and the tests use file-scoped namespaces, the equality checks use Assert.AreEqual, and two tests are added for an interpolated raw string literal (line endings normalised so it passes on Linux and Windows) and for a string.Format template that arrives at run time.

…amples, add raw string and runtime template tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant