tag:blogger.com,1999:blog-4063545436138319205.post1745647531246647355..comments2024-03-18T00:19:24.238-07:00Comments on Tom DuPont .NET: Migrating from NUnit to xUnitTom DuPonthttp://www.blogger.com/profile/08233783264428691459noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4063545436138319205.post-48033279785164257222018-02-23T07:32:32.680-08:002018-02-23T07:32:32.680-08:00I'm not sure that Test Fixture Setup/TearDown ...I'm not sure that Test Fixture Setup/TearDown as compared/contrasted with (Test) Setup/TearDown has quite the same connotation in xUnit as it does in NUnit. I could be wrong about that. Consider, setting up each TEST FIXTURE happens ONCE, where as SETUP happens for EACH test. Whereas, in xUnit Facts, or even Theories, are akin to tests. You wouldn't want to initialize the ctor EACH time, in terms of TEST FIXTURE, so called, in xUnit. Thoughts?Anonymoushttps://www.blogger.com/profile/10548733485844234655noreply@blogger.comtag:blogger.com,1999:blog-4063545436138319205.post-18176241601963771492018-02-19T07:07:44.835-08:002018-02-19T07:07:44.835-08:00I'm considering a migration from an old NUnit ...I'm considering a migration from an old NUnit based unit tests of mine to xUnit.<br /><br />Incidentally, at this time, I think NUnit supports Combinatorial, ability to compose your own parameter data sets, etc, even as of v2.6.4. However, I question some of the philosophical drivers motivating the move to v3.<br /><br />In contrast, while I don't mind adding an attribute decoration anyway, I do kind of enjoy the simplicity of the xUnit approach, however. Just utilize built-in features of the language to effect the test fixtures, etc. That's it. Plain and simple.<br /><br />At any rate, good to know. Thanks!Anonymoushttps://www.blogger.com/profile/10548733485844234655noreply@blogger.comtag:blogger.com,1999:blog-4063545436138319205.post-18399335041363541242013-03-21T00:11:14.233-07:002013-03-21T00:11:14.233-07:00Theory (or data driven) unit tests. Almost every u...Theory (or data driven) unit tests. Almost every unit test I make is written as a Theory; this encourages everyone on the team to continuously add more sample data to our tests. I absolutely love theories, and I can not say enough good things about them.<br /><br />More details: http://www.tomdupont.net/2012/04/xunit-theory-data-driven-unit-test.htmlTom DuPonthttps://www.blogger.com/profile/08233783264428691459noreply@blogger.comtag:blogger.com,1999:blog-4063545436138319205.post-78691779093886984622013-03-13T11:32:18.552-07:002013-03-13T11:32:18.552-07:00Thank you for sharing.
Why did you move from nUnit...Thank you for sharing.<br />Why did you move from nUnit to xUnit? What did you gain? Shahrokhhttps://www.blogger.com/profile/03749980224015205054noreply@blogger.com