Attribute cannot be repeated in C++/CLI but OK in C#?
问题 I'm getting error C3095: 'Xunit::Extensions::InlineDataAttribute': attribute cannot be repeated in C++/CLI code but not C#. xUnit.net looks like the answer to my prayers - a modern unit test framework with GUI working with C++/CLI. However, using their approach to parameterised testing gives me the error C3095 as shown below. Any ideas? I'm using the latest xUnit.net 1.6 with Visual Studio 2008SP1. using namespace Xunit; using namespace Xunit::Extensions; public ref class