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

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

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

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

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

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

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

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