Questions tagged [xunit2]

Related to the version 2 of XUnit

Related to the version 2 of XUnit: https://github.com/xunit/xunit/releases

64 questions
0
votes
1 answer

DbContext.Database.EnsureCreated()

I am studying packtpub's entity framework core cookbook on unit test, there is an example (I made some change) [Fact] public void CanCreateDatabase() { var blogContext = new BlogContext(_builder.Options); var created =…
shayim
  • 3
  • 1
  • 4
0
votes
1 answer

Downgrading all projects in solution to only use net451 references

I initially started a WebAPI project using the ASP.NET Core 1.0 template and was trying to do everything with dnx451 and dnxcore50 specified in all project.json files across the solution. I recently gave up on using anything related to dnxcore due…
Blake Rivell
  • 13,105
  • 31
  • 115
  • 231
0
votes
1 answer

LoggerName already in use

So i had this working, ive switched to paket and i guess some versions of dll's have changed. However I still do not understand the error i am getting. System.ArgumentException : LoggerName already in use Parameter name: loggerName my code is…
John Nicholas
  • 4,778
  • 4
  • 31
  • 50
0
votes
1 answer

Can XUnit handle tests handle class and decimal parameters in the same method?

I have a test method with the following signature: public void TheBigTest(MyClass data, decimal result) { And I'd like to run this in XUnit 2.1. I've got my CalculationData class all set up and that works if I remove the second parameter. But when…
Adam
  • 129
  • 11
1 2 3 4
5