Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit ba93ddf

Browse files
committed
[TouchRunner] Fix unused variable warning by only defining the variable when it's used. (#71)
1 parent ab2aaa5 commit ba93ddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NUnitLite/TouchRunner/TestCaseElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public TestCaseElement (TestMethod testCase, TouchRunner runner)
4646
if (!Runner.OpenWriter (Test.FullName))
4747
return;
4848

49-
var suite = (testCase.Parent as TestSuite);
5049
#if NUNITLITE_NUGET
5150
Run ();
5251
#else
52+
var suite = (testCase.Parent as TestSuite);
5353
var context = TestExecutionContext.CurrentContext;
5454
context.TestObject = Reflect.Construct (testCase.Method.ReflectedType, null);
5555

0 commit comments

Comments
 (0)