
Moq
Authored by Nataly Revutska
Computers
1st - 5th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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());
Access all questions and much more by creating a free account
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
10 questions
SC015 Intro
Quiz
•
3rd Grade
13 questions
Troubleshoot
Quiz
•
3rd - 4th Grade
14 questions
Chapter 7 Simple Movement of Sprite
Quiz
•
3rd Grade
19 questions
Alan Turing
Quiz
•
1st Grade
10 questions
CPU Internal Parts
Quiz
•
1st Grade
10 questions
Application/Productivity Tools
Quiz
•
5th - 6th Grade
12 questions
Design&Technology
Quiz
•
4th Grade
19 questions
Code.org Express Course -> Lesson 10
Quiz
•
5th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade