xunit incredibly slower after upgrading from 2.7.1
I am trying to upgrade xunit on https://github.com/MarkCiliaVincenti/AsyncKeyedLock/, currently on 2.7.1
Is there a WAY to view unit TEST COVERAGE in Visual Studio Professional 2022?
I’m looking for a tool to view unit test coverage in Visual Studio. I’ve seen that there are extensions like “Fine Code Coverage” or “dotCover”. But I have problems to install them.
Cannot use a trailing m for decimal in InlineData()
I am wondering why we can use a trailing d
for double
but we cannot use a trailing m
for decimal
in InlineData()
below.
Determine if injected service was called in UnitTest
I am trying to test to see if injected service was used within the service I am testing and wondered if that will be possible at all?
Static variables get in a way of unit testing with WebApplicationFactory in xUinit
I have a WebApplicationFactory which makes a call to MongoDB.Bson.Serialization.BsonClassMap.RegisterClassMap, which is fine when my first test run, but the second test crashes with error because this method was already called with similar args, because it’s state is preserved in static field. I can’t alter the code that causes the error.
Xunit mock concrete class method
Facing error when trying to mock a Method in Concrete Class
Xunit moq contructor passing mock.Object thows method not found but works when null is passed instead
Im trying to create a XunitTest using moq,the class im trying to create a unit test has a constructor accepting two parameters ,to be more specefic,here is the class im trying to create a test for:
Logging from DataAttribute in xUnit
I have a few DataAttribute
s to inject different graphics libraries into my integration tests, like so:
How to mock static interface in xunit c#
I have performanceLogger class where I need to set IMyTelemetryClient. we are mocking the IMyTelemetryClient in the test even though it’s value is null and throwing invalidoperation exception. below is the class and xunit.