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();