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