Linq select new Not Covered %100 in Unit test

OZBEKHAN POLAT 0 Reputation points
2023-02-06T14:07:12.48+00:00

Hi Everyone,

In unit tests linq select not cover exactly, ı am shared two picture downside. First one result of foreach and select new coverage result. It is exactly made same job. foreach cover %100 but linq select not

User's image

Second Picture is about record class in select new statement. it is same with linq example not covered again. RequestFieldInfo use in foreach , ResponseFieldInfo just use in select statement

User's image

thnx

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,647 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
337 questions
{count} votes