python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Change TestName in NUnit
I am trying to change the testcase name as below:
public static string getTestName()
{
return testName;
}
[TestCase(TestName = nameof(getTestName))]
public void MyTest()
...
Mounika
Votes: 0
Answers: 1
Can I assert that a C# method has a certain attribute?
[DummyAttribute]
public void DummyMethod() {
return;
}
I want to write a Nunit test that will assert that DummyMethod is decorated with DummyAttribute, can I do that ?
Milan
Votes: 0
Answers: 3
How to properly use OneTimeSetUp for NUnit Tests
I have a text file full of unsolved sudoku puzzles. I want to solve each puzzle with my algorithm and compare against a already working solver (from Nuget). For this, I would like to use NUnit and fur...
kklaw
Votes: 0
Answers: 1
NUnit - TestFixtureSource executed before SetUpFixture
I have a setupfixture which will update some variables.
[SetUpFixture]
public class TestSetUp
{
[OneTimeSetUp]
public void Setup()
{
var GlobalVar.MSIPath =...
Mounika
Votes: 0
Answers: 1