public override string ToString() { return("ID = " + ID.ToString() + "; UserName = "******"; Country = " + Country + "; Project = " + Project + "; RegDate = " + RegDate.ToString() + "; AvgScore = " + AvgScore.ToString() + "; AllScore = " + AllScore.ToString()); }
public void TestToString() { Module m = new Module(); m.Name = "Maths"; AvgScore instance = new AvgScore(15, m); string expected = "Maths (Moyenne : 15)"; Assert.Equal(expected, instance.ToString()); }