public static void Main()
        {
            Test t1 = new Test();
            Console.WriteLine(t1.ToString());

            GoodSpace.Test t2 = new GoodSpace.Test();
            Console.WriteLine(t2.ToString());
        }
Esempio n. 2
0
 public void TestToString()
 {
     _test1 = new Test { Name = "a" };
     Assert.AreEqual(string.Format("Id:{0},姓名:a", _test1.Id), _test1.ToString());
 }
Esempio n. 3
0
 public string Echo(Test test)
 {
     return test.ToString();
 }