Return to Snippet

Revision: 66878
at July 16, 2014 01:46 by heathbo

Initial Code
public void GetProcessConfigSettingsByKeys_Test()
  // Setup
  this.mockProvider.Setup(x => x.GetBiAutoProcessConfigByKeys(123, 456, It.IsAny<int>()))

  // Action
  var result = target.GetProcessConfigSettingsByKeys(123, 456, null);

  // Assert
  this.mockProvider.Verify(x => x.GetBiAutoProcessConfigByKeys(123, 456, null));


Initial URL

Initial Description
The code to verify that a method was called.
The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.

Initial Title
Moq: Verify a Method is Called

Initial Tags

Initial Language