Moq

Moq

1st - 5th Grade

14 Qs

quiz-placeholder

Similar activities

VEX IQ Parts

VEX IQ Parts

3rd - 6th Grade

18 Qs

Fun Robots and MakeCode

Fun Robots and MakeCode

4th Grade - Professional Development

13 Qs

Peripherals

Peripherals

3rd - 4th Grade

11 Qs

Set 7

Set 7

1st Grade

15 Qs

Roblox L9 Datastore

Roblox L9 Datastore

1st - 5th Grade

10 Qs

Youtube

Youtube

4th Grade - University

11 Qs

Hardware and software

Hardware and software

2nd - 5th Grade

16 Qs

Venky part1

Venky part1

1st - 12th Grade

15 Qs

Moq

Moq

Assessment

Quiz

Computers

1st - 5th Grade

Hard

Created by

Nataly Revutska

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Does Moq framework support out/ref arguments?

yes

no

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

We use _________ method to check if the method which we set up called a certain number of times

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

______ type allows you to check how many times the dependency has been called.

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

How to transfer mock-object to the controller?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Suppose we want to test controller ProductsController that uses ProductService(inherited from IProducts).

The following code will:

Execute(Test passed)

Not execute, Runtime error

Execute(Test failed)

Not execute, Compilation error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What part of the unit test does AutoFixture minimize?

Arrange

Act

Assert

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the expressions will pass the test if the method GetAllAsync() was called twice ?

service.Verify(x => x.GetAllAsync(), Times.AtLeastOnce());

service.Verify(x => x.GetAllAsync(), Times.Between(1, 3, Range.Exclusive));

service.Verify(x => x.GetAllAsync(), Times.AtMostOnce());

service.Verify(x => x.GetAllAsync(), Times.Once());

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?