I am trying to write a unit test where I check that a certain result is correct. However, there are two results that would be considered correct. Is there a way to do an OR with assertions? I know that I could do result = x || result = y and assert that this is true. But rather than seeing true != false, I would like to see result != x or y.
The framework I am using is mstest, but I would be open to hearing suggestions for nunit as well.
You could try Fluent Assertions. This is a set of .NET extension methods that allow you to more naturally specify the expected outcome test. Fluent Assertions supports both MSTest and NUnit, so it will be not a big deal to switch later to nUnit. Then you could express your assertion using following snippet: