public List MinshpqtyUpsertLocations(KeyValuePair[] locations, int minshpqty)
{
}
locations array consists of locationid which is int and location name which is string both of them together a keyvalue pair am done with everything just I have to write a nunit test or any test to check the performance by passing locations array size as 1000
please guide me, if some one comeup with the same problem, thanks in advance :)

Ramesh MaruthiPosted Jul 8, 2014, 9:43 PM
am very good with your explanation, and what you said is absolutely right, i want to do the performance test for that method but vidya sir can you please tell me how to write a unit test for that kind of method signature
Vidya Vrat AgarwalPosted Jul 8, 2014, 9:18 PM
Ramesh,
The kind of Tests you are referring are Performance Tests not Unit Tests, is that right?
Considering you are interested in Performance test, there could be two minimum possible scenarios you want to test the performance for based on your provided size, "Read 1000 items from an Array" & "Write 1000 Items into an Array"
Now considering this situation as we want to do Performance tests (Automated) it is important to set the benchmark of performance, means how long should it reasonably take to read from and write into an array with 1000 items
Once you have all this data you can perform such operation with Populating the array and counting the time for whole operation
Similarly you can Read from the array and count the time again
I hope this approach will lead you towards code implementation as per your Developer environment and project settings