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
20 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: David Messi Test Date: 28-May-2014
Test Name: Test Driven Development (TDD) Test Test Start Time: 13.30

Score: 18 Out Of 20

Percentage: 90

Result: PASS

passing score image
Section Name FAIL PASS
Test Driven Development
Score: 18/20
Strength Test Driven Development
Weakness -
* Note: If score <= 40 then its a Weakness. If score >= 80 then its a Strength.
10 20 30 40 50 60 70 80 90 100%
Tolerable Limit Not acceptable
Window Violation: 0 | Time Violation: 0 secs
Gender : Male Phone Number : +1-541-754-3010
Total Experience (Years) : 3 Total Experience (Months) : 5
Skill Set : Test Driven Development Current Employer : Interview Mocha
Current Job Title : Solution Architect Current Salary : 600.00
Expected Salary : 1000000.00 Current Location : Chicago

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo

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
  • hexaware
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

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo