Revision: 66878
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 16, 2014 01:46 by heathbo
Initial Code
[TestMethod] public void GetProcessConfigSettingsByKeys_Test() { // Setup this.mockProvider.Setup(x => x.GetBiAutoProcessConfigByKeys(123, 456, It.IsAny<int>())) .Returns(automationConfigurationSetting) .Verifiable(); // 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
c#
Initial Language
C#