unit test in visual studio for d365 fo using x++

Gokulraj Chandrasekaran 0 Reputation points
2024-04-26T05:12:47.0533333+00:00

I create the unit test in visual studio 2022.

create the employ class and employTest class. the test class extends the sysTestcase and i add the test method the write in below:

[SysTestMethodAttribute]

void testName()

{

// Verify that the employee name is set correctly.

this.assertEquals("your name", employee._name());

}

and I want to test it but the test is not show in test explorer.

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 14,850 Reputation points Microsoft External Staff Moderator
    2024-04-26T06:27:38.6066667+00:00

    Hi Gokulraj Chandrasekaran,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    This topic is currently not supported in the Q&A forums.

    I suggest you start a new discussion via the Developer Community(visual studio). and moderators will be there to help you.

    Please don't forget to Accept helpful answer and close this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.