コード例 #1
0
        public void GetListCheck()
        {
            List <AirportModel> test_list = new List <AirportModel>();

            AirportModel air_test1 = new AirportModel
            {
                direction     = "Canada",
                departureTime = new DateTime(2018, 3, 12, 7, 0, 0),
                arriveTime    = new DateTime(2008, 3, 12, 10, 0, 0),
            };

            AirportModel air_test2 = new AirportModel
            {
                direction     = "Italy",
                departureTime = new DateTime(2017, 3, 1, 7, 0, 0),
                arriveTime    = new DateTime(2017, 4, 1, 10, 0, 0),
            };

            test_list.Add(air_test1);
            test_list.Add(air_test2);

            CollectionAssert.IsNotSubsetOf(test_list, m.GetList());
        }