public void FilePathConstructorTest2() { FilePath_Accessor target = new FilePath_Accessor(); Assert.AreEqual(null, target.DataRoot); Assert.AreEqual(null, target.Absolute); Assert.AreEqual(null, target.Relative); }
public void GetSchemaTest() { IXmlSerializable target = new FilePath_Accessor(); XmlSchema expected = null; XmlSchema actual; actual = target.GetSchema(); Assert.AreEqual(expected, actual); }
public void DataRootSetsAbsolutePathIfRelativeIsAlreadySet() { FilePath_Accessor target = new FilePath_Accessor(); string absolute = @"C:\Foo\Stuff.xml"; string dataRoot = @"C:\Foo"; string relative = @"Stuff.xml"; target.Relative = relative; target.SetDataRoot(dataRoot, true); Assert.AreEqual(absolute, target.Absolute); }
public void ReadNonVersionedTest() { FilePath_Accessor target = new FilePath_Accessor(); // TODO: Initialize to an appropriate value using (var reader = System.Xml.XmlReader.Create("NonVersionedFilePath.xml")) { XPathDocument doc = new XPathDocument(reader); XPathNavigator nav = doc.CreateNavigator(); target.ReadNonVersioned(nav); } Assert.AreEqual(@"C:\Foo\Stuff.xml", target.Absolute); Assert.AreEqual(null, target.Relative); Assert.AreEqual(null, target.DataRoot); }