public void SPNameTest_Return_SchoolList_SPName() { //Arrange string action = "Schools"; //Act string expect = "dbo.tcdsb_LTO_PageGeneral_ListSchools @Operate,@Para0,@Para1,@Para2,@Para3"; string result = GeneralExe.SPName(action); //Assert Assert.AreEqual(expect, result, $" School List Store Procedure Name { result}"); }
public void SPNameTest_Return_SchoolList_SPName_byDelegateHelpMethod() { //Arrange string action = "Schools"; string page = "General"; //Act string expect = "dbo.tcdsb_LTO_PageGeneral_ListSchools @Operate,@Para0,@Para1,@Para2,@Para3"; string result = GeneralExe.SPName(action, page); //Assert Assert.AreEqual(expect, result, $" action provide Store Procedure Name and Parameters is: { result}"); }
public void SPNameTest_Return_SPName_whatAction_Provide() { //Arrange string action = "dbo.tcdsb_LTO_anySPName @Operate,@Para0,@Para1,@Para2,@Para3"; //Act string expect = action; string result = GeneralExe.SPName(action); //Assert Assert.AreEqual(expect, result, $" action provide Store Procedure Name and Parameters is: { result}"); }