Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Tests are language dependent #1003
I wondered why some tests fail while your build seams to complete successfully.
I found, that some tests are language dependend, e.g.
act.Should().Throw<ArgumentNullException>().WithMessage( "Cannot compare collection with <null>.*Parameter name: unexpected");
The test verifies the text from exception, but the ArgumentNullException generates text depending on user/windows settings. On my (german) system the text is "Parametername" instead of "Parameter name".
I see three options:
What do you think?
Hi @dennisdoomen, I think this is a misunderstandig: I was talking about the Unit Tests of FluentAssertions. So, it is related to FA.
I think, this should be fixed. The tests should NOT be related to the language selected for the OS they are running on!