Moq
Quiz
•
Computers
•
1st - 5th Grade
•
Practice Problem
•
Hard
Nataly Revutska
Used 2+ times
FREE Resource
Enhance your content in a minute
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
How to transfer mock-object to the controller?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
G4- Repetition review
Quiz
•
4th Grade
10 questions
VexCode Vr - Pen Tool Quiz
Quiz
•
1st - 5th Grade
10 questions
Guía 13. Evaluación Undécimo - Normas APA
Quiz
•
1st - 5th Grade
14 questions
Podsumowanie wiadomości klasy I-III
Quiz
•
1st Grade
10 questions
Microsoft Word 2
Quiz
•
2nd Grade
10 questions
PENGENALAN PLC
Quiz
•
1st Grade - Professio...
12 questions
Sequencing and Loops
Quiz
•
2nd Grade
10 questions
Pengujian Perangkat Lunak
Quiz
•
1st Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
