Visual Studio has support for snippets. I added the factm snippet to expand to a method with the Fact attribute on it. Download my snippet from here.
I’m missing the Assert.Inconclusive method for reminding me about incomplete tests. Also I must stop clicking New Unittest and start creating New Class.
Where mstest uses an ExpectedException attribute, xunit uses Asserts.Throws. This makes the code more readable.
Xunit has Assert.Contains to check strings for containing a string. I was doing a check for true on string.Contains, the xunit method is shorter. Short is good 😉