|
|
@ -52,6 +52,9 @@ namespace TupleStudyTest
|
|
|
|
Assert.Equal("wanggaofeng", tuple.Item2);
|
|
|
|
Assert.Equal("wanggaofeng", tuple.Item2);
|
|
|
|
|
|
|
|
|
|
|
|
var student = new Student() { Id = 1, Name = "wanggaofeng", Age = 28 };
|
|
|
|
var student = new Student() { Id = 1, Name = "wanggaofeng", Age = 28 };
|
|
|
|
|
|
|
|
Assert.Equal(1, student.Id);
|
|
|
|
|
|
|
|
Assert.Equal("wanggaofeng", student.Name);
|
|
|
|
|
|
|
|
Assert.Equal(28, student.Age);
|
|
|
|
|
|
|
|
|
|
|
|
var studentTuple = tupleStudy.GetTuple_StaticMethod_Tow<string,Student>("静态方法",student);
|
|
|
|
var studentTuple = tupleStudy.GetTuple_StaticMethod_Tow<string,Student>("静态方法",student);
|
|
|
|
Assert.Equal("静态方法", studentTuple.Item1);
|
|
|
|
Assert.Equal("静态方法", studentTuple.Item1);
|
|
|
|