Skip to main content

Questions tagged [xunit]

xUnit.net is a free, open source, community-focused unit testing tool for the .NET Framework

2 votes
1 answer
241 views

I'm trying to learn and write best practice unittests and practice test driven design. Can you give me some tips and review my code? ...
Mounir's user avatar
  • 75
2 votes
1 answer
192 views

I'm new to C# and would appreciate any feedback you might have on the following doubly-linked list implementation, particularly WRT the following language features: Exception handling Debug.Assert ...
Manningham's user avatar
3 votes
1 answer
948 views

I want to test my CRUD operation to a MySql database (I use dapper as my ORM). This is what I wrote with ...
SilentRage47's user avatar
4 votes
2 answers
326 views

For self learning purpose, I have created some xUnit unit test for these 2 Atm classes. At the moment, data is store in the in-memory object. This version is extended from previous version. For ...
Steve Ngai's user avatar
2 votes
1 answer
122 views

I have these 3 methods for ATM mock program. ...
Steve Ngai's user avatar
5 votes
1 answer
911 views

I am new to writing unit tests and i am facing some difficult writing unit tests for this class. I am using Xunit and moq. ...
user226060's user avatar
2 votes
1 answer
597 views

This is my first test, I think it's testing what I need it to test but wanted to get some feedback. I wanted to test to make sure the controller action returns a view with a certain ViewModel. The ...
MF1010's user avatar
  • 107
3 votes
3 answers
465 views

Robot Name Manage robot factory settings. When robots come off the factory floor, they have no name. The first time you boot them up, a random name is generated in the format of two ...
Milliorn's user avatar
  • 610
-2 votes
1 answer
478 views

I have two questions. Does it make sense to test that an event will not be fired? If yes, what is the best way to accomplish that using the xUnit framework? For ...
Themelis's user avatar
  • 105
3 votes
1 answer
237 views

I'm not experienced with testing, therefore I'd like you to look at my code proposal of unit test. My solution has following projects Tests\Application.Tests Application Domain Infrastructure Web And ...
Muflix's user avatar
  • 133
2 votes
1 answer
398 views

I am writing some unit tests using XUnit in F# and I am wondering what is the most idiomatic way in the F# sense to write them. Let's start a simple case: ...
Natalie Perret's user avatar
3 votes
1 answer
161 views

When creating data-driven tests with xUnit we can use the MemberDataAttribute to get the data from a member of this or other ...
t3chb0t's user avatar
  • 44.7k