public void KartaRaskroj_Rendering_View() { //Arrang nesting_plan ns = new nesting_plan(); ns.width = 1250; NestingController nestingContr = new NestingController(); //Act PartialViewResult view_karta = nestingContr.KartaRaskroj(ns); //Assert nesting_plan ns_in = (nesting_plan)view_karta.Model; Assert.AreEqual(1250, ns.width); }
public void IndexTest_ViewModel_OrderData() { //Arrang NestingController nestigContr = new NestingController(); data_order zakaz = Arrang(); IExsportXML podstava = Substitute.For <IExsportXML>(); podstava.D().Returns(zakaz); nestigContr.e = podstava; // Act ViewResult viewreult = nestigContr.Index(); data_order d; d = (data_order)viewreult.Model; //Assert Assert.AreEqual(d.name, "USA"); }