Пример #1
0
 public void TestToStringMethod()
 {
     var a = new AClassWithToString();
     string expected =
       @"new AClassWithToString()
     {
     B = ""hello""
     C = new Int32[]()
     {
     [0] = 5
     [1] = 4
     [2] = 3
     [3] = 2
     [4] = 1
     }
     }";
     Assert.AreEqual(expected, a.ToString());
 }
        public void TestToStringMethod()
        {
            var    a        = new AClassWithToString();
            string expected =
                @"new AClassWithToString()
{
    B = ""hello""
    C = new Int32[]()
    {
        [0] = 5
        [1] = 4
        [2] = 3
        [3] = 2
        [4] = 1
    }
}";

            Assert.AreEqual(expected, a.ToString());
        }