Skip to content
Navigation menu
Search
Powered by
Search
Algolia
Search
Log in
Create account
DEV Community
Close
Automated Testing Series' Articles
Back to Anthony Fung's Series
4 Types of Tests to Help Keep Your Software's Bug Count Low
Anthony Fung
Anthony Fung
Anthony Fung
Follow
May 17 '23
4 Types of Tests to Help Keep Your Software's Bug Count Low
#
testing
#
productivity
8
reactions
Comments
2
comments
3 min read
7 Easy Steps to Writing Your First C# Unit Test
Anthony Fung
Anthony Fung
Anthony Fung
Follow
May 24 '23
7 Easy Steps to Writing Your First C# Unit Test
#
programming
#
csharp
#
testing
#
tutorial
4
reactions
Comments
Add Comment
5 min read
Parameterise Your Tests: Use this One Simple Trick to Increase Test Coverage
Anthony Fung
Anthony Fung
Anthony Fung
Follow
May 31 '23
Parameterise Your Tests: Use this One Simple Trick to Increase Test Coverage
#
csharp
#
dotnet
#
testing
#
tutorial
1
reaction
Comments
Add Comment
3 min read
Isolate your Components in Tests: How to Mock your Dependencies
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jun 7 '23
Isolate your Components in Tests: How to Mock your Dependencies
#
csharp
#
dotnet
#
testing
#
tutorial
12
reactions
Comments
2
comments
4 min read
Don't Restrict Yourself to Mocks: Test your Components Running Together
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jun 14 '23
Don't Restrict Yourself to Mocks: Test your Components Running Together
#
csharp
#
dotnet
#
testing
#
tutorial
3
reactions
Comments
Add Comment
4 min read
Testing Everything Works Perfectly Once All the Pieces Are in Place
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jun 21 '23
Testing Everything Works Perfectly Once All the Pieces Are in Place
#
csharp
#
dotnet
#
testing
#
tutorial
3
reactions
Comments
Add Comment
5 min read
How Manual Testing is Still Important Even with Automated Tests
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jun 28 '23
How Manual Testing is Still Important Even with Automated Tests
#
testing
Comments
2
comments
4 min read
Moq Techniques: How to Pick the Best Syntax when Configuring Your Mocks
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jul 5 '23
Moq Techniques: How to Pick the Best Syntax when Configuring Your Mocks
#
csharp
#
dotnet
#
testing
#
tutorial
1
reaction
Comments
Add Comment
4 min read
Advanced Moq Techniques: Methods that Do More than Return Values
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jul 12 '23
Advanced Moq Techniques: Methods that Do More than Return Values
#
csharp
#
dotnet
#
testing
#
tutorial
8
reactions
Comments
Add Comment
4 min read
What is Async Programming and How Does it Affect Unit Tests?
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jul 19 '23
What is Async Programming and How Does it Affect Unit Tests?
#
csharp
#
dotnet
#
testing
#
tutorial
5
reactions
Comments
Add Comment
5 min read
How to Unit Test and Mock Services with Date and Time Logic
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Jul 26 '23
How to Unit Test and Mock Services with Date and Time Logic
#
csharp
#
testing
#
dotnet
#
tutorial
11
reactions
Comments
Add Comment
4 min read
How to Check a Method was Called on a Mock in Moq
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Aug 2 '23
How to Check a Method was Called on a Mock in Moq
#
csharp
#
testing
#
dotnet
#
tutorial
11
reactions
Comments
4
comments
4 min read
How to Check How Many Times Mocked Methods Are Called in Unit Tests
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Aug 9 '23
How to Check How Many Times Mocked Methods Are Called in Unit Tests
#
csharp
#
testing
#
dotnet
#
tutorial
5
reactions
Comments
Add Comment
3 min read
How to Set Up Mocks in Unit Tests to Return Default Objects
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Aug 16 '23
How to Set Up Mocks in Unit Tests to Return Default Objects
#
csharp
#
testing
#
dotnet
#
tutorial
8
reactions
Comments
Add Comment
3 min read
How to Use Strict Mocking in Moq to Automatically Verify All Setups
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Aug 23 '23
How to Use Strict Mocking in Moq to Automatically Verify All Setups
#
csharp
#
testing
#
dotnet
#
tutorial
3
reactions
Comments
2
comments
4 min read
What Alternatives Are There to Use in Unit Tests Instead of Mocks?
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Aug 30 '23
What Alternatives Are There to Use in Unit Tests Instead of Mocks?
#
csharp
#
testing
#
dotnet
5
reactions
Comments
3
comments
4 min read
How to Add Tests for Existing Code with Methods That Aren’t Public
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Sep 6 '23
How to Add Tests for Existing Code with Methods That Aren’t Public
#
csharp
#
testing
#
dotnet
#
tutorial
5
reactions
Comments
Add Comment
5 min read
3 Ways to Organise and Tidy Your C# Unit Test Projects
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Sep 13 '23
3 Ways to Organise and Tidy Your C# Unit Test Projects
#
csharp
#
testing
#
dotnet
#
tutorial
2
reactions
Comments
Add Comment
5 min read
3 Useful NUnit Attributes for Your C# Tests You Shouldn’t Forget About
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Sep 20 '23
3 Useful NUnit Attributes for Your C# Tests You Shouldn’t Forget About
#
csharp
#
testing
#
dotnet
#
tutorial
4
reactions
Comments
1
comment
5 min read
How to Easily Create New Mock Instances in Unit Tests
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Sep 27 '23
How to Easily Create New Mock Instances in Unit Tests
#
csharp
#
testing
#
dotnet
#
tutorial
5
reactions
Comments
2
comments
4 min read
Simplify Unit Tests by Storing Complex Data in Resource Files
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Oct 4 '23
Simplify Unit Tests by Storing Complex Data in Resource Files
#
csharp
#
testing
#
dotnet
#
tutorial
4
reactions
Comments
Add Comment
5 min read
How to Make Sure Your Test Resources Are Always Available
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Oct 11 '23
How to Make Sure Your Test Resources Are Always Available
#
csharp
#
testing
#
dotnet
#
tutorial
4
reactions
Comments
Add Comment
3 min read
How to Make JSON String Comparisons in Unit Tests Less Brittle
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Oct 18 '23
How to Make JSON String Comparisons in Unit Tests Less Brittle
#
csharp
#
testing
#
dotnet
#
tutorial
3
reactions
Comments
5
comments
4 min read
3 Ways to Include JSON Directly in Your C# Test Code
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Oct 25 '23
3 Ways to Include JSON Directly in Your C# Test Code
#
csharp
#
dotnet
#
tutorial
3
reactions
Comments
3
comments
4 min read
How to Write NUnit Tests for Many Classes with Generic Test Fixtures
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Nov 1 '23
How to Write NUnit Tests for Many Classes with Generic Test Fixtures
#
csharp
#
dotnet
#
testing
#
tutorial
1
reaction
Comments
Add Comment
3 min read
Parallelise Your NUnit Tests to Be More Productive and Waste Less Time
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Nov 8 '23
Parallelise Your NUnit Tests to Be More Productive and Waste Less Time
#
csharp
#
dotnet
#
testing
#
tutorial
4
reactions
Comments
Add Comment
6 min read
How to Measure the Effectiveness of Unit Tests Using Code Coverage
Anthony Fung
Anthony Fung
Anthony Fung
Follow
Nov 15 '23
How to Measure the Effectiveness of Unit Tests Using Code Coverage
#
csharp
#
dotnet
#
testing
2
reactions
Comments
Add Comment
4 min read
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account