public void GetValue_AdditionalFilter()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValue("Par.Bro", e => e.Value.StartsWith("a"));

            Assert.True(actual.StartsWith("a"));
        }
        public void GetValue()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValue("hoge");

            Assert.AreEqual("XXX", actual);
        }
        public void GetElements()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetElements("At");

            Assert.IsTrue(actual.Count() > 0);
        }
        public void GetValue_IllegalNodePath()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValue("");

            Assert.IsNull(actual);
        }
        public void GetValue()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValue("hoge");

            Assert.AreEqual("XXX", actual);
        }
        public void GetValue_IllegalNodePath()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValue("");

            Assert.IsNull(actual);
        }
        public void GetValue_AdditionalFilter()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValue("Par.Bro", e => e.Value.StartsWith("a"));

            Assert.True(actual.StartsWith("a"));
        }
        public void GetValue_Child()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValue("Par.Chi");

            Assert.AreEqual("ChildValue", actual);
        }
        public void GetValue_Child()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValue("Par.Chi");

            Assert.AreEqual("ChildValue", actual);
        }
示例#10
0
        public void GetElements()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetElements("At");

            Assert.IsTrue(actual.Count() > 0);
        }
        public void GetElements_AdditionalFilter()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetElements("At", el => el.GetAttrValue("hogeAttr") == "wao");

            Assert.IsTrue(actual.Count() > 0);
            actual.ForEach(el => Assert.AreEqual("wao", el.GetAttrValue("hogeAttr")));
        }
        public void GetElement()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetElement("At");

            Assert.NotNull(actual);
            Assert.AreEqual(typeof(XElement), actual.GetType());
        }
示例#13
0
        public void GetElement()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetElement("At");

            Assert.NotNull(actual);
            Assert.AreEqual(typeof(XElement), actual.GetType());
        }
示例#14
0
        public void GetValues_IllegalNodePath()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValues("");

            Assert.NotNull(actual);
            Assert.AreEqual(0, actual.Count());
        }
示例#15
0
        public void GetValues()
        {
            IQuillConfig target = QuillAppConfig.Load();
            var          actual = target.GetValues("Mul");

            Assert.AreEqual(2, actual.Count());
            actual.ForEach(v => Assert.IsNotNull(v));
        }
        public void GetValues_IllegalNodePath()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValues("");

            Assert.NotNull(actual);
            Assert.AreEqual(0, actual.Count());
        }
        public void GetElement_AdditionalFilter()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetElement("At", el => el.GetAttrValue("hogeAttr") == "wao");

            Assert.NotNull(actual);
            Assert.AreEqual("wao", actual.GetAttrValue("hogeAttr"));
        }
        public void GetValues_AdditionalFilter()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValues("Par.Sis", e => e.Value.StartsWith("x"));

            Assert.AreEqual(3, actual.Count());
            actual.ForEach(v => Assert.IsTrue(v.StartsWith("x")));
        }
        public void GetValues()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");
            var          actual = target.GetValues("Mul");

            Assert.AreEqual(2, actual.Count());
            actual.ForEach(v => Assert.IsNotNull(v));
        }
示例#20
0
        public void Load_Exists()
        {
            IQuillConfig target = QuillAppConfig.Load();

            Assert.NotNull(target);
        }
        public void Load_Exists()
        {
            IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml");

            Assert.NotNull(target);
        }