Exemplo n.º 1
0
        public void FindNone()
        {
            ITaskContext c    = new TaskContext(new SimpleTaskContextProperties(), new string[0]);
            ITask        peek = new PeekXmlTask(SampleXmlFile, "/trtwe/rwetr", ConfigurationSetting);

            peek.Execute(c);
            Assert.IsNull(c.Properties[ConfigurationSetting]);
        }
Exemplo n.º 2
0
        public void FindOne()
        {
            ITaskContext c    = new TaskContext(new SimpleTaskContextProperties(), new string[0]);
            ITask        peek = new PeekXmlTask(SampleXmlFile, "//id", ConfigurationSetting);

            peek.Execute(c);
            Assert.AreEqual("2011-02-18_12-16-21", c.Properties[ConfigurationSetting]);
        }
Exemplo n.º 3
0
        public void FindMultiple()
        {
            ITaskContext c    = new TaskContext(new SimpleTaskContextProperties(), new string[0]);
            ITask        peek = new PeekXmlTask(SampleXmlFile, "//revision", ConfigurationSetting);

            peek.Execute(c);
            Assert.AreEqual(
                new[] { "2200", "https://svn.server/repos/example1/trunk/src2200", "2200", },
                c.Properties.Get <string[]>(ConfigurationSetting));
        }