File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ namespace LeetCodeSolutionsTest
1212{
1313 public class QuestionServiceTests
1414 {
15- private QuestionService questionService ;
15+ private QuestionService _questionService ;
1616
1717 #region Setup
1818
1919 [ SetUp ]
2020 public void Setup ( )
2121 {
22- questionService = new QuestionService ( ) ;
22+ _questionService = new QuestionService ( ) ;
2323 }
2424
2525 #endregion Setup
@@ -33,7 +33,7 @@ public void ExecuteQuestion_UnknownQuestionNumber_ThrowsQuestionNotFoundExceptio
3333 int questionNumber = 99999999 ;
3434
3535 // Act + Assert
36- Assert . Throws < QuestionNotFoundException > ( ( ) => questionService . ExecuteQuestion ( questionNumber ) ) ;
36+ Assert . Throws < QuestionNotFoundException > ( ( ) => _questionService . ExecuteQuestion ( questionNumber ) ) ;
3737 }
3838
3939 [ Test ]
@@ -48,7 +48,7 @@ public void ExecuteQuestion_NotImplementedQuestion_ThrowsNotImplementedException
4848 mockQuestion . Execute ( ) . Throws ( new NotImplementedException ( ) ) ;
4949
5050 // Act + Assert
51- Assert . Throws < NotImplementedException > ( ( ) => questionService . ExecuteQuestion ( questionNumber ) ) ;
51+ Assert . Throws < NotImplementedException > ( ( ) => _questionService . ExecuteQuestion ( questionNumber ) ) ;
5252 }
5353
5454 #endregion Exception Tests
@@ -81,7 +81,7 @@ public void ExecuteQuestion_MediumQuestion_ReturnsSuccessResult(int questionNumb
8181 private void ExecuteQuestionAndAssert ( int questionNumber )
8282 {
8383 // Act
84- IResult result = questionService . ExecuteQuestion ( questionNumber ) ;
84+ IResult result = _questionService . ExecuteQuestion ( questionNumber ) ;
8585
8686 // Assert
8787 ClassicAssert . IsInstanceOf < SuccessResult > ( result ) ;
You can’t perform that action at this time.
0 commit comments