public string TeacherNameTest(object parameter) { string result = RequestPostingExe.TeacherName(parameter); return(result); // TODO: add assertions to method RequestPostingExeTest.TeacherNameTest(Object) }
public void TeacherNameTest() { //Arrange string action = "TeacherName"; string intitalValue = "00045299"; // "CPNum"; var myAnonymousParametere = new { CPNum = intitalValue, Operate = "Name" }; var testTextControl = new System.Web.UI.WebControls.TextBox(); // Act string expect = "Cassandra Kurnik"; testTextControl.Text = RequestPostingExe.TeacherName(myAnonymousParametere); string result = testTextControl.Text; // Assert Assert.AreEqual(expect, result, $"Teacher Name is { result} from CPNum {intitalValue} "); }