Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[CSharp] Add the C# 11 type modifier `file` feature support

Open lindexi opened this issue 1 year ago • 5 comments

See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/file

The file is the keyword of type modifier as the type visibility.

lindexi avatar Sep 12 '24 08:09 lindexi

Do you want to write some unit tests, too?

michaelblyons avatar Sep 12 '24 11:09 michaelblyons

Thank you, let me learn how to write unit tests in this project.

lindexi avatar Sep 12 '24 11:09 lindexi

@michaelblyons I added the unit test code, could you review my code?

lindexi avatar Sep 12 '24 11:09 lindexi

I have approved running the tests, but there are some test failures. Once those look good, I think it'll be clear to merge.

michaelblyons avatar Sep 12 '24 11:09 michaelblyons

@michaelblyons Thank you and I try fix the unit test. Sorry, I'm not familiar with test syntax.

lindexi avatar Sep 12 '24 11:09 lindexi

If you're having trouble, you can install the PackageDev package, click at end of the line you want tests for in the unit test file, and Cmd+Enter (or Ctrl+Enter) and it should write a test suite for that line.

michaelblyons avatar Sep 12 '24 13:09 michaelblyons