Skip to content

Instantly share code, notes, and snippets.

@BojanKomazec
Created January 1, 2016 12:23
Show Gist options
  • Save BojanKomazec/c9a9df0e0eae367f7e2c to your computer and use it in GitHub Desktop.
Save BojanKomazec/c9a9df0e0eae367f7e2c to your computer and use it in GitHub Desktop.
using NUnit.Framework;
using MyApp;
namespace MyAppTests
{
public class MyClass_Tests
{
[TestCase(MyEnum.Value1)]
[TestCase(MyEnum.Value2)]
public void Foo_Does_This_When_MyEnum_Is_Value1_or_Value2(object myEnumArg)
{
var myEnum = (MyEnum)myEnumArg;
// use myEnum...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment