Esempio n. 1
0
 public override string ToString()
 {
     return("ID = " + ID.ToString() + "; UserName = "******"; Country = " + Country + "; Project = " + Project +
            "; RegDate = " + RegDate.ToString() + "; AvgScore = " + AvgScore.ToString() +
            "; AllScore = " + AllScore.ToString());
 }
Esempio n. 2
0
        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());
        }