3 Topics

Member Avatar for
Member Avatar for Pelle_3

Hi, all. I am using Entity Framework and decided to do some dependency injection in order to make my functions more testable. This seemed to bring up a few questions that I found difficult to solve. I guess the difficult part is figuring out the best practice of doing this, …

0
196
Member Avatar for surajrai

I have a method that returns void. say: Public void CreateRectangle(double z, double y, IRectangle rectObj) { Vector3d recPos1 = new Vector3d() recPos1.X = 0; recPos1.Y = some double vale; Vector3d recPos2 = new Vector3d() recPos2.X = some double value; recPos2.Y = 0; rectObj.SetVectors(recPos1, recPos2); } now, in my unit …

Member Avatar for thines01
0
515
Member Avatar for surajrai

Hi, I am working on a component based application. I have a method that does some calculation and returns nothing. say: public void DoSomething(int x, int y) { // do something } How to write testing for it. I can pass some dummy x,y values. But how and what we …

Member Avatar for cale.macdonald
0
234

The End.