Example #1
0
        public void Match_Strictest_Found_RetursTrue()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.True(sut.Match(_criteria, "C23456", "O", "STKGIEP", "BRSTLTM"));
        }
Example #2
0
        public void Match_Strictest_NotFound_RetursFalse()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.False(sut.Match(_criteria, "C23456", "O", "NPLEIEP", "BRSTLTM"));
        }
Example #3
0
        public void Match_Stricter_NotFound_RetursFalse()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.False(sut.Match(_criteria, "C23456", "P"));
        }
Example #4
0
        public void Match_Stricter_Found_RetursTrue()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.True(sut.Match(_criteria, "C23456", "O"));
        }
Example #5
0
        public void Match_Loose_NullList_RetursTrue()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.True(sut.Match(null, "C23456"));
        }
Example #6
0
        public void Match_Loose_EmptyList_RetursTrue()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.True(sut.Match(new List <ScheduleCriteria>(), "C23456"));
        }
Example #7
0
        public void Match_Loose_NotFound_RetursFalse()
        {
            ScheduleMatcher sut = new ScheduleMatcher();

            Assert.False(sut.Match(_criteria, "foo"));
        }