python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
xUnit, Moq with UnitOfWork and general repository
I tried a lot of examples but I do not get the good response.
The ReportUpload method creates some Report entity based on the list from ExcelManager list
and adds them to the Reports DbSet.
My goal wo...
sada
Votes: 0
Answers: 1
Unit Test C# Can we test catch block?
let's say i have a method that logins in;
public async Task<IActionResult> Login()
{
try
{
//my codes..
}
catch(Exception exp)
{
_sLogger.Slack(exp)
r...

coytex
Votes: 0
Answers: 1
xUnit AutoFixture throwing error with data annotation attribute
I am using AutoFixture.Xunit2 and try to generate auto data for my model class which has enum with regular expression data annotation as well.
public enum TypeEnum
{
[Display(Name = "Fix"...
user584018
Votes: 0
Answers: 0
how to combine multiple assertion using FluentAssertions
I came to know that through FluentAssertions library we can combine multiple assertion in a single like. Just want to know if below 2 assert can be combined in a single line?
// Act
I...
user584018
Votes: 0
Answers: 1