コード例 #1
0
        public void GetFiltered_ReturnsSelectedTrailsInDatabase_TrailList()
        {
            Trail testTrail1 = new Trail("TrailName1", 1, 2.5f, 3, true, true, true, true, true, true);

            testTrail1.Save();
            Trail testTrail2 = new Trail("TrailName2", 1, 2.5f, 3, false, true, true, true, true, true);

            testTrail2.Save();
            List <Trail> result   = Trail.GetFiltered(1, 2.5f, 3, true, true, true, true, true, true);
            List <Trail> testList = new List <Trail> {
                testTrail1
            };

            CollectionAssert.AreEqual(testList, result);
        }