Skip to content

Commit d3c49c4

Browse files
committed
Interlinking
1 parent 64f2aeb commit d3c49c4

4 files changed

+7
-3
lines changed

Diff for: _posts/2020-08-11-HowToCreateFakesWithMoq.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ For Moq, `MockRepository` is a factory of mocks. We can verify all mocks created
111111

112112
Voilà! That's how we create fakes and mocks with Moq. Moq is a great library! It keeps its promise. It's easy to set up dependencies in our tests. We need to know only a few methods to start using it. We only need: `Setup`, `Returns`, `Throws`, and `Verify`. It has chosen to lower the barrier of writing tests. Give it a try! _To mock or not to mock!_
113113

114-
For more tips on writing unit tests, check my posts on how to write good unit tests by [reducing noise]({% post_url 2020-11-02-UnitTestingTips %}) and [writing failing tests]({% post_url 2021-02-05-FailingTest %}). If you use Moq often, avoid typing the same method names all the time with [these snippets I wrote for Visual Studio]({% post_url 2021-02-22-VisualStudioMoqSnippets %}).
114+
If you use Moq often, avoid typing the same method names all the time with [these snippets I wrote for Visual Studio]({% post_url 2021-02-22-VisualStudioMoqSnippets %}).
115+
116+
For more tips on writing unit tests, check my posts on how to write good unit tests by [reducing noise]({% post_url 2020-11-02-UnitTestingTips %}) and [writing failing tests]({% post_url 2021-02-05-FailingTest %}). And don't miss the rest of my [Unit Testing 101 series]({% post_url 2021-08-30-UnitTesting %}) where I cover more subjects like this one.
115117

116118
_Happy mocking time!_

Diff for: _posts/2021-07-19-WriteBetterAssertions.md

+2
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,6 @@ Voilà! These are 5 tips to write better assertions. If you want a more complete
172172

173173
If you're new to unit testing, start reading [Unit Testing 101]({% post_url 2021-03-15-UnitTesting101 %}) and [4 common unit testing mistakes]({% post_url 2021-03-29-UnitTestingCommonMistakes %}). For more advanced tips, check [how to write good unit tests]({% post_url 2020-11-02-UnitTestingTips %}) and [always write failing tests]({% post_url 2021-02-05-FailingTest %}).
174174

175+
And don't miss the rest of my [Unit Testing 101 series]({% post_url 2021-08-30-UnitTesting %}) where I cover more subjects like this one.
176+
175177
_Happy testing!_

Diff for: _posts/2021-08-02-LetsRefactorATest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,6 @@ Voilà! That looks better! Unit tests got our back when changing our code. It's
225225

226226
If you're new to unit testing, read [Unit Testing 101]({% post_url 2021-03-15-UnitTesting101 %}), [4 common mistakes when writing your first tests]({% post_url 2021-03-29-UnitTestingCommonMistakes %}) and [4 test naming conventions]({% post_url 2021-04-12-UnitTestNamingConventions %}).
227227

228-
For more advanced content on unit testing, check [what are fakes in unit testing]({% post_url 2021-05-24-WhatAreFakesInTesting %}), [how to write fakes with Moq]({% post_url 2020-08-11-HowToCreateFakesWithMoq %}) and these [tips to write better stubs and mocks]({% post_url 2021-06-07-TipsForBetterStubsAndMocks %}).
228+
For more advanced content on unit testing, check [what are fakes in unit testing]({% post_url 2021-05-24-WhatAreFakesInTesting %}) and don't miss the rest of my [Unit Testing 101 series]({% post_url 2021-08-30-UnitTesting %}).
229229

230230
_Happy testing!_

Diff for: _posts/2021-08-16-WriteCustomAssertions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,6 @@ Voilà! That's how to use custom assertions to write tests in the same terms as
207207

208208
In case you have plain assertions, not `Verify()` methods with Moq, simply write private methods to group your assertions and share them in a base test class. Or write extension methods on the output of the method being tested. For more details on this technique, check xUnitPatterns on [Custom Assertions](http://xunitpatterns.com/Custom%20Assertion.html).
209209

210-
If you're new to fakes, mocks and stubs, read [What are fakes in unit testing]({% post_url 2021-05-24-WhatAreFakesInTesting %}) and [how to write better stubs and mocks]({% post_url 2021-06-07-TipsForBetterStubsAndMocks %}). Also, don't miss my [Unit testing best practices]({% post_url 2021-07-05-UnitTestingBestPractices %}) and [how to write better assertions]({% post_url 2021-07-19-WriteBetterAssertions %}).
210+
If you're new to fakes, mocks, and stubs, read [what are fakes in unit testing]({% post_url 2021-05-24-WhatAreFakesInTesting %}) and [how to write better stubs and mocks]({% post_url 2021-06-07-TipsForBetterStubsAndMocks %}). Also, don't miss my [unit testing best practices]({% post_url 2021-07-05-UnitTestingBestPractices %}) and the rest of my [Unit Testing 101 series]({% post_url 2021-08-30-UnitTesting %}) where I cover more subjects like this one.
211211

212212
_Happy testing!_

0 commit comments

Comments
 (0)