Example #1
0
 public void TestSortTest()
 {
     ListDemo target = new ListDemo(); // TODO: 初始化为适当的值
     bool expected = true; // TODO: 初始化为适当的值
     bool actual;
     actual = target.TestSort();
     Assert.AreEqual(expected, actual);
 }
Example #2
0
        public void TestSortTest()
        {
            ListDemo target   = new ListDemo(); // TODO: 初始化为适当的值
            bool     expected = true;           // TODO: 初始化为适当的值
            bool     actual;

            actual = target.TestSort();
            Assert.AreEqual(expected, actual);
        }
Example #3
0
        static void Main(string[] args)
        {
            {
                //集合总汇
                ListDemo.Get();
            }

            {
                DelegateDemo.Get();
            }
            Console.ReadKey();
        }
    static void Main(string[] args)
    {
        ListDemo _list = new ListDemo();                   //Declare an instance of the ListDemo class.

        List <string> newStrList = new List <string>();    //Declare a new List<string>.

        newStrList.Add("string1");                         //Add strings like this.
        newStrList.Add("string2");
        newStrList.Add("string3");

        _list.Str = newStrList;                            //Add the entire collection at once, like this.

        foreach (string item in _list.Str)
        {
            Console.WriteLine(item);
        }
        Console.ReadKey();
    }
    static void Main(string[] args)
    {
        ListDemo _list = new ListDemo();

        List <String> Str = new List <String>();

        Str.Add("string1");
        Str.Add("string2");
        Str.Add("string3");

        _list.Str = Str;

        foreach (string item in _list.Str)
        {
            Console.WriteLine(item);
        }
        Console.ReadKey();
    }
Example #6
0
        public void ListDemoConstructorTest()
        {
            ListDemo target = new ListDemo();

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
Example #7
0
 public void ListDemoConstructorTest()
 {
     ListDemo target = new ListDemo();
     Assert.Inconclusive("TODO: 实现用来验证目标的代码");
 }