Test Project and Test Class: Assessment Test Questions

  1. Question pool (2 of 4)
    1. Which project type do you use to create a project for using the Acumatica Unit Test Framework?
      • Windows Service (.NET Framework)
      • Console App (.NET Core)
      • Console App (.NET Framework)
      • Windows Forms App (.NET Core)
      • Class Library
    2. Which test library is 100% compatible with the Acumatica Unit Test Framework?
      • NUnit
      • xUnit.net
      • csUnit
      • MSTest
      • AcuTest
      • PXTest
    3. Which access modifier do you use to declare a test class?
      • public
      • protected
      • internal
      • protected internal
      • private
      • private protected
    4. Select a correct statement about unit tests.
      • To perform unit tests, you need to deploy an MYOB Acumatica instance or a database instance.
      • To perform unit tests, you do not need to deploy an MYOB Acumatica instance or a database instance.
      • To perform unit tests, you must deploy a database instance.
  2. Question pool (1 of 2)
    1. What naming convention should you follow when creating a test project for a particular project in a Visual Studio solution?
      • The name of the test project should be exactly the same as the name of the project for which the test project is being created.
      • The name of the test project should be the same as the name of the project for which the test project is being created but with Tests. prepended to the name.
      • The name of the test project should be the same as the name of the project for which the test project is being created but with .Tests appended to the name.
    2. What naming convention should be followed for the namespace and the test class of a test project?
      • The names for the namespace and the test class of a test project should be exactly the same as the name for the namespace and the corresponding class name of the project being tested.
      • The names for the namespace and the test class of a test project should be the same as the name for the namespace and the corresponding class name of the project being tested but with .Tests appended to the namespace and the word Test appended to the test class's name.
      • The names for the namespace and the test class of a test project should be the same as the name for the namespace and the corresponding class name of the project being tested but with Tests. prepended to the namespace and the word Test prepended to the test class's name.
  3. Question pool (1 of 2)
    1. Which namespace does the TestBase class belong to?
      • PX.Tests.Unit
      • PX.UnitTests.Base
      • PX.Tests
      • PX.UnitTesting
    2. The Acumatica Unit Test Framework requires a test class to be derived from which of the following?
      • No class
      • The class being tested
      • PX.Data.PXGraph
      • PX.Tests.Unit.TestBase