How do I install NUnit 3 console on Windows and run tests?

It is hard to find, because there is a lot of outdated documentation, either for NUnit2 or NUnit3. Steps: Official NUnit3 console installers are here: https://github.com/nunit/nunit-console/releases (path is different than in docs) Download NUnit.Console-*.msi package and install Add to system PATH variable this: C:\Program Files (x86)\NUnit.org\nunit-console Open command line Type: $ nunit3-console test.dll // For … Read more

NUnit 3.0 and Assert.Throws

I see where you’re coming from, even though I don’t mind combining Act/Assert steps in this case. The only thing I can think of is to store the actual delegate (here to FromPrinergyDateTime) into a variable as the “act” step and then assert it: [Test] public void Should_not_convert_from_prinergy_date_time_sample2() { //Arrange string testDate = “20121123120122”; //Act … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)