public void GroupedListSourceConstructorTests ()
		{
			var myDataClass = new dataClass ();
			GroupedListSource<string,dataClass> list = new GroupedListSource<string,dataClass>(
				new List<ListGroup<string, dataClass>>{new ListGroup<string, dataClass> (){ myDataClass, new dataClass () }});
			Assert.Contains (myDataClass, list[0]);
		}
		public void GroupedListSourceEmptyConstructorTests ()
		{
			GroupedListSource<string,dataClass> list = new GroupedListSource<string,dataClass>();
			var myDataClass = new dataClass ();
			list.Add (new ListGroup<string, dataClass> (){ myDataClass, new dataClass () });
			Assert.Contains (myDataClass, list[0]);
		}
示例#3
0
        public void GroupedListSourceEmptyConstructorTests()
        {
            GroupedListSource <string, dataClass> list = new GroupedListSource <string, dataClass>();
            var myDataClass = new dataClass();

            list.Add(new ListGroup <string, dataClass> ()
            {
                myDataClass, new dataClass()
            });
            Assert.Contains(myDataClass, list[0]);
        }
示例#4
0
        public void GroupedListSourceConstructorTests()
        {
            var myDataClass = new dataClass();
            GroupedListSource <string, dataClass> list = new GroupedListSource <string, dataClass>(
                new List <ListGroup <string, dataClass> > {
                new ListGroup <string, dataClass> ()
                {
                    myDataClass, new dataClass()
                }
            });

            Assert.Contains(myDataClass, list[0]);
        }