dir.by  
  Поиск  
Компьютер, программы
Юнит тестирование (MSTest, NUnit, xUnit, Moq) и Автоматическое тестирование (компьютер сам водит мышкой)
Moq (mock) testing
 Что такое Mock (moq) тестирование? 
посмотрели 8693 раз
обновлено: 10 July 2018
Mock тестирование это значит мы создаем Mock объект.
Mock объект представляет собой фиктивную реализацию интерфейса (муляж).
Фиктивная реализация интерфейса означает что для интерфейса мы определяем не все методы.
Для метода мы указываем что он возращают и при каких параметрах.

Обычно в тестировании мы создаем Mock объект, а потом его подсовываем в другой класс для тестирования.

Mock объект может определить сколько раз был вызван метод и с какими параметрами вызывался метод.
 
← Previous topic
Sites to learn xUnit testing
 
Next topic →
Writing a C# Application with Mock (moq) Testing
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

  Объявления  
  Объявления  
 
What is Unit Testing?
MSTest (UnitTest) testing
What is MSTest (UnitTest)? (Unit Testing Framework from Microsoft)
Sites to learn MSTest (UnitTest) testing
NUnit Testing
What is NUnit ? (unit testing framework)
Writing a Console C# Application with NUnit Testing
xUnit testing
What is xUnit? (unit testing framework)
Sites to learn xUnit testing
Moq (mock) testing
What is Mock (moq) testing?
Writing a C# Application with Mock (moq) Testing
Websites to learn Moq testing
What is automated testing?
Automated Testing
Write an automated test on C# using Selenium for Web site
Download and install the Microsoft application WinAppDriver
Launch the Microsoft WinAppDriver application
Writing an automatic C# test for a standard calculator from Windows
Writing an automated test for a WPF C# application (using Nuget.Appium and the AutomationProperties.AutomationId property)

  Ваши вопросы присылайте по почте: info@dir.by