[TestMethod]
pulbic void AddstudentTest()
{
global::MySchool.BLL.StudentManager target=new gloabl::Myschool.BLL.StudentManager();
global::MySchool.Models.Student stuent=null;
string expected=null;
string actual;
actual=target.Addstudent(student);
Assert.AreEqual(expected,actual,"MySchool.BLL.StudentManager.AddStudent 未放回所需的值。");
Assert.Inconclusive("验证此方法的正确性");}
[TestMethod]
pulbic void AddstudentTest()
{
global::MySchool.BLL.StudentManager target=new gloabl::Myschool.BLL.StudentManager();
global::MySchool.Models.Student stuent=new global.MySchool.Models.Student();
Student.LoginId="test1";
Student.Lingpwd="1234";
Student.sex="女";
string actual1;
actual1=target.AddStudent(student);
Assert.AreEqual(expected,actual,"MySchool.BLL.StudentManager.AddStudent 未放回所需的值。");
Assert.Inconclusive("验证此方法的正确性");}
请解释一下这段代码
::代表什么意思?
pulbic void AddstudentTest()
{
global::MySchool.BLL.StudentManager target=new gloabl::Myschool.BLL.StudentManager();
global::MySchool.Models.Student stuent=null;
string expected=null;
string actual;
actual=target.Addstudent(student);
Assert.AreEqual(expected,actual,"MySchool.BLL.StudentManager.AddStudent 未放回所需的值。");
Assert.Inconclusive("验证此方法的正确性");}
[TestMethod]
pulbic void AddstudentTest()
{
global::MySchool.BLL.StudentManager target=new gloabl::Myschool.BLL.StudentManager();
global::MySchool.Models.Student stuent=new global.MySchool.Models.Student();
Student.LoginId="test1";
Student.Lingpwd="1234";
Student.sex="女";
string actual1;
actual1=target.AddStudent(student);
Assert.AreEqual(expected,actual,"MySchool.BLL.StudentManager.AddStudent 未放回所需的值。");
Assert.Inconclusive("验证此方法的正确性");}
请解释一下这段代码
::代表什么意思?
用global::A.Test 和global::B.Test就代表了不同的类