This is possibly a more general question about unit testing. Sometimes I need to test a scenario with a lot of inputs. Let's say there are even just 4 inputs, like
public bool SomeMethod(bool foo, bool bar, bool baz, bool bux)
{
// ...
}
and I want to do
Assert.IsFalse(SomeThing.SomeMethod(true, false, false, true));
I end up with a test name like
[TestMethod]
public void TrueFooFalseBarFalseBazTrueBuxReturnsSuccessTest()
Am I doing it wrong?
Aucun commentaire:
Enregistrer un commentaire