Hello, I am learning to unit test my code in C#. The one thing that I have noticed when using frameworks like xunit, is that I am writing separate methods that the xunit can understand. So my method will be constructed in one way, and I am learning a new syntax to create a test method.
The problem is, when I change my own method, I have to then re-write my test method so that it looks similar and is testing for something.
I’m not sure if I am doing this correctly, but isn’t it just better to use my method construct and then just test that, rather than trying to create a new type of testing method using different syntax.
submitted by /u/Marcusaurels
[link] [comments]