3 Topics

Member Avatar for
Member Avatar for iConqueror

I am learning about unit testing using the NUnit framework. I built a monopoly game in a console application and am now conducting unit tests for each class. I am struggling with writing a test for my game class that only takes 1 method: public abstract class Game: GameInterface { …

Member Avatar for rubberman
0
171
Member Avatar for sachinst

[HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel model, string returnUrl) if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.PasswordpersistCookie: model.RememberMe)) { return RedirectToLocal(returnUrl); } ModelState.AddModelError("", "The user name or password provided is incorrect."); return View(model); } Can I get to know a good source for unit testing this. I am new to unit testing.

Member Avatar for geniusvishal
0
149
Member Avatar for anisha.silva

hi, i wanted to know how to i test a metho as below int32[] AT; int32AB,ab; int32[] at; public void A() { AT = at; AB = ab; return; } is this correct public void SetStaticTest1() { Int32[] AT ; Int32[] at = {1,2,3,4,5}; Int32 AB ; Int32 ab = …

Member Avatar for anisha.silva
0
197

The End.