Skills Test on TDD (Test Driven Development)

Topics covered

Unit Tests, Fakes
UI testing, TestSetUp and TearDown
Assertion, Basics, Verification
Returning Mocks, Method Mocking
Interface Mocking, Expectations

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

The Skills Test on Test Driven Development (TDD) in C# has been designed and developed to help hiring managers & recruiters to evaluate the TDD skills of candidates for C# before hiring or recruiting.

Test Driven Development (TDD) is a process which relies on a very short repetition development cycle. It is a type of programming where coding, testing, and designing are intertwined for the process.

TDD online test is created & validated by global subject matter experts to assess & hire C# developers with excellent skills in TDD.

Online TDD test (for C#) contains questions on following Topics:

  • Unit Tests

  • Fakes

  • UI testing

  • TestSetUp and TearDown

  • Assertion

  • Basics

  • Verification

  • Returning Mocks

  • Method Mocking

  • Interface Mocking

  • Expectations

Powerful reports will be generated instantly. It gives you the detailed hiring analytics of Test Driven Development (TDD) pre-employment test that helps in analyzing the technical skills related strengths & weaknesses of the candidates.

This pre-employment test is useful for hiring:
  • Software Test Engineer - Test Driven Development
  • Senior Full Stack Engineer
  • Software Development Engineer
  • Senior C# Developer

Test details:

Identify potential hires by evaluating working skills and job readiness using our valid & reliable assessment test on TDD (Test Driven Development).

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.
Test Details: 20 minutes
10 Application Questions
This test contains the combination of application and theory questions on TDD with Microsoft Unit test framework & TDD with MOQ (Mocking) that helps you to evaluate technical as well as practical skills of candidates.

Test Driven Development (TDD) Test

Question #1 of 3

Suppose you have a class A and a method B that you want to mock using the Moq framework. Under which of the following conditions can you mock A and B?

    • Class A must be sealed and method B must be marked virtual.

    • Class A must not be sealed and method B must be marked virtual.

    • Class A must not be sealed and method B must be marked static.

    • Class A must be sealed and method B must be marked static.

Question #2 of 3

You have mocked an interface containing an integer variable, say varIt, and named the mock object as mockInterface. Which of the following statements make mockInterface return "Accepted" string if varIt is an integer between 0 and 10 (both included)?

    • mockedInterface.Expect(a => a.Get(It.IsAny<int>(varIt => between[0,10]))).Returns("Accepted");

    • mockedInterface.Expect(a => a.Get(It.Any<value>(varIt => from[0,10]))).Returns("Accepted");

    • mockedInterface.Expect(a => a.Get(It.Is<int>(varIt => varIt>0 && varIt<10))).Returns("Accepted");

    • mockedInterface.Expect(a => a.Get(Int.IsAny(varIt =>from[0] to [10]))).Returns("Accepted");

Question #3 of 3

In order to mock the interface shown below, which of the following options must be used?    

public interface eStore
     List Select();
     eProduct Get(int id);

    • Mock Interface option in the Mock tab in Visual Studio.

    • MockInterface productStore = new MockInterface<eStore>();

    • Mock pane in the Tools tab of Visual Studio.

    • var productStore = new Mock<eStore>();

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking




It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Take your first step to hire job fit candidate


How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate