When writing C# code with NUnit and XML commenting is there a required, or preferred format for which comes first?
Would:
using NUnit.Framework;
namespace FooBar{
/// <summary>
/// The <c>foo</c> class tests bar
/// </summary>
[TestFixture]
public class Foo{
}
}
be correct or would:
using NUnit.Framework;
namespace FooBar{
[TestFixture]
/// <summary>
/// The <c>foo</c> class tests bar
/// </summary>
public class Foo{
}
}
be better?
This isn’t specific to NUnit – it’s any attributes.
It’s a matter of preference, but for me at least, the comments should come before the code – attributes count as code too.