c# - Unit Testing is not showing Test Result -


i have created 1 unit test project testing view not showing result. below code:-

using system; using microsoft.visualstudio.testtools.unittesting; using singlepage.controllers; using system.web.mvc;  namespace unittestproject1 {     [testclass]     public class unittest1     {         [testmethod]         public void testmethod1()         {             console.writeline("method");             //arrange             homecontroller ctrl = new homecontroller();              console.writeline("pass");             //act             viewresult r = ctrl.index() viewresult;              //asert             assert.areequal("view1", r.viewname);         }      } } 

after click on "run all" test explorer getting below message:

------ discover test started ------

no plugin found can import settings file extension '.csproj'. either select new settings file or install extension understands settings file extension.

========== discover test finished: 0 found (0:00:00.0010094) ==========

you can user debug.writeline print output tab on visual studio.

[testmethod] public void testmethod1() {     debug.writeline("method");     //arrange     homecontroller ctrl = new homecontroller();      debug.writeline("pass");     //act     viewresult r = ctrl.index() viewresult;      //asert     assert.areequal("view1", r.viewname); } 

Comments