Andy Williams
Andy Williams

Reputation: 907

Selenium WebDriver C# Visual Studio N Unit Test Name

I am new to using Selenium WebDriver in C# on Visual Studio and am wondering if there is a comparable way to name a test like there is using Java and TestNG. For example in Java I have my test

@Test
public void SomeTest(){}

Instead of calling my Test Name "SomeTest" I can convert TestNG into XML and call my Test Name something more descriptive using the tag

    <test name = "blah blah">
    </test> "

Is there a similar parallel way to do this using C# N Unit testing in Visual Studio?

Upvotes: 0

Views: 423

Answers (1)

dustinmoris
dustinmoris

Reputation: 3361

In C# you can name your test method whatever you like. It can be as descriptive as you wish and if that is not enough you can use NUnit's Description attribute to add more meaningful text to your test method.

Upvotes: 1

Related Questions