jeudi 23 avril 2015

Unit test can not find my methods/functions

I have written a basic unit test however when I try to run it it says it can not find the function I am calling however I know it is there and I have already added the form it is held in to references. Everything else works perfect except my unit test.

This is my 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);
        }
    }
}

Aucun commentaire:

Enregistrer un commentaire