public void GetValue_IllegalNodePath() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); var actual = target.GetValue(""); Assert.IsNull(actual); }
public void GetValue_Child() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); var actual = target.GetValue("Par.Chi"); Assert.AreEqual("ChildValue", actual); }
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 GetElements() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); var actual = target.GetElements("At"); Assert.IsTrue(actual.Count() > 0); }
public void GetValue() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); var actual = target.GetValue("hoge"); Assert.AreEqual("XXX", actual); }
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 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)); }
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_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 GetElement() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); var actual = target.GetElement("At"); Assert.NotNull(actual); Assert.AreEqual(typeof(XElement), actual.GetType()); }
public void Load_Exists() { IQuillConfig target = QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest.xml"); Assert.NotNull(target); }
public void Load_NotFoundQuillSection() { TU.ExecuteExcectedException <QuillException>( () => QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest_NoQuillSection.xml")); }
public void Load_NotExistsPath() { TU.ExecuteExcectedException <FileNotFoundException>(() => QuillConfigImpl.Load("NotExists")); }
public void Load_NullPath() { TU.ExecuteExcectedException <ArgumentNullException>(() => QuillConfigImpl.Load(null)); }