Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a xunit test class file template #3

Open
bitbonk opened this issue Sep 27, 2018 · 1 comment
Open

add a xunit test class file template #3

bitbonk opened this issue Sep 27, 2018 · 1 comment

Comments

@bitbonk
Copy link

bitbonk commented Sep 27, 2018

The xUnit.net test class template should also exist as a file template.

It should look like this:

$HEADER$namespace $NAMESPACE$
{
	public class $CLASSNAME$
	{
		[Xunit.FactAttribute]
		public void $Function$()
		{
			$END$
		}
	}
}

Settings

description: &xUnit.net test class
type: File
reformat: True
shortenReferences: True
categories: xunit
scopes: in c# projects referencing xunit

Parameters

CLASSNAME: not editable, current file name without extensions with all non-alphanumeric characters replaced with underscores
HEADER: not editable, file header
NAMESPACE: not editable, default namespace for current file

@bitbonk
Copy link
Author

bitbonk commented Sep 27, 2018

While we are at it, how do I define the rule "n c# projects referencing xunit". There is no UI that allows me to define "referencing xunit". But there are file templates that have this rule for nunit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant