mercredi 18 novembre 2015

Ways to approach a Stop watch test in the form of unit test

I'm very new to c# I've been tasked with creating a test that will tell me how long a search process takes. So I click a search button. Then I wait for the results to appear.

I'd like to try it in the form of a unit test with my triple A's The test ideally can take no longer than 3 seconds to complete it's search.

What would be the best way to approach this? and Would I need to do any setup before hand?

I just have the generic code so far.

    [TestMethod]
public void LocationNameSearch()
{
    //Arrange


    //Act


    //Assert


}}

Aucun commentaire:

Enregistrer un commentaire