c# - Unit test can not find my methods/functions -


i have written basic unit test when try run it says can not find function calling know there , have added form held in references. else works perfect except unit test.

this unit test code.

using system; using microsoft.visualstudio.testtools.unittesting; using windowsformsapplication1;  namespace test {     [testclass]     public class unittest1     {         [testmethod]         public void checkgamecannotstartwithouttwoteamsselectedtest()         {             bool expected, actual;             windowsformsapplication1.rugbyscorer frm1 = new rugbyscorer();             actual = startcheck();             expected = false;             assert.areequal(expected, actual);         }     } } 

should't be:

frm1.startcheck(); 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -