heathbo


Member since 10/05/2010

4 snippets

2645 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

You have not received any achievements.

heathbo's Recent SnippetsTagged c#



« Prev 1 Next »
Verify that the Execute("ping") method is never called.
0 1200 posted 10 years ago by heathbo
The code to verify that a method was called. The this.mockProvider.Verify verifies that GetBiAutoProcessConfigByKeys is called.
0 1008 posted 10 years ago by heathbo
The ExpectedException section under [TestMethod] is where you tell Moq what type of exception your listening for. If that exception is thrown, then this test will pass and it will stop running all the code under the target.CalculateProvisionalPrice....
0 1668 posted 10 years ago by heathbo
Example 1: I'm verifying that the list that is passed in has 3 attachments. SendMail is run later in the SendEmail method. Example 2: I'm verifying that the object that is passed into the method has the appropriate values.
0 1332 posted 10 years ago by heathbo
« Prev 1 Next »