Ejemplo n.º 1
0
        public void TextSearchTestWithoutResult()
        {
            TourPlannerManager testManager = TourPlannerManagerFactory.GetFactoryManager();

            TestTours   = new();
            AssertTours = new();
            TestTours.Add(new Tour()
            {
                Name = "TestTour"
            });
            string TestString = "abc";

            AssertTours = testManager.SearchForTours(TestString, TestTours);
            Assert.AreNotEqual(AssertTours, TestTours);
        }
Ejemplo n.º 2
0
        public void TextSearchTestWithResult()
        {
            TourPlannerManager testManager = TourPlannerManagerFactory.GetFactoryManager();

            TestTours   = new ObservableCollection <Tour>();
            AssertTours = new ObservableCollection <Tour>();
            TestTours.Add(new Tour()
            {
                Name = "TestTour"
            });
            string TestString = "Test";

            AssertTours = testManager.SearchForTours(TestString, TestTours);
            Assert.AreEqual(AssertTours, TestTours);
        }