KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
With MSpec is it possible to create data driven tests? For example, NUnit has the TestCase attribute that allows for multiple data driven cases. [TestFixture] public class ExampleOfTestCases { [TestCase(1,2,3)] [TestCase(3,3,6)] [TestCase(2,2,4)] public void when_adding_two_numbers(int number1, int number2, int expected) { Assert.That(number1 + number2, Is.EqualTo(expected); } }
Tags (comma-separated)
Save Edits
Cancel