Exemple #1
0
        public void testDLTestMatchFailsOnMismatchedExample()
        {
            DataSet ds   = DataSetFactory.getRestaurantDataSet();
            Example e    = ds.getExample(0);
            DLTest  test = new DLTest();

            test.add("type", "Thai");
            Assert.IsFalse(test.matches(e));
        }
Exemple #2
0
        public void testDLTestMatchesEvenOnMismatchedTargetAttributeValue()
        {
            DataSet ds   = DataSetFactory.getRestaurantDataSet();
            Example e    = ds.getExample(0);
            DLTest  test = new DLTest();

            test.add("type", "French");
            Assert.IsTrue(test.matches(e));
        }
Exemple #3
0
        public void testDLTestMatchSucceedsWithMatchedExample()
        {
            DataSet ds   = DataSetFactory.getRestaurantDataSet();
            Example e    = ds.getExample(0);
            DLTest  test = new DLTest();

            test.add("type", "French");
            Assert.IsTrue(test.matches(e));
        }