Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以帮助我在 AX 中编写单元测试。点喜欢
以及编写测试类时应牢记的所有基本事项。
Unit TestAX中的使用,看这里:
Unit Test
您需要涵盖哪些条件?好吧,取决于,但你可能应该把目标放在测试覆盖率上。
断言是您认为真实的条件,例如:
this.assertEquals(10, 7+3);
通常你会测试变量或返回值。