public void TestCreateNode() { var resxdata = ResXData.FromFile(resxFile); var fileRef = (ResXFileRef)resxdata.Nodes[1].ObjectValue; Core.FilePath path = fileRef.FileName; var absolutePath = Path.GetFullPath(path.ToAbsolute(resxdata.Path)); var otherNode = (ResXDataNode)resxdata.CreateNode(absolutePath, typeof(System.Drawing.Bitmap)); Assert.AreEqual(fileRef.FileName, otherNode.FileRef.FileName); Assert.AreEqual(fileRef.TypeName, otherNode.FileRef.TypeName); Assert.AreEqual(fileRef.TextFileEncoding, otherNode.FileRef.TextFileEncoding); var value = (System.Drawing.Bitmap)resxdata.GetValue(resxdata.Nodes[0]); var otherValue = (System.Drawing.Bitmap)resxdata.GetValue(otherNode); Assert.AreEqual(value.Width, otherValue.Width); Assert.AreEqual(value.Height, otherValue.Height); }
public Core.FilePath GetValidFormatName(object obj, Core.FilePath fileName) { return(fileName.ParentDirectory.Combine("package.json")); }
public DubSolution(Core.FilePath slnPath) { base.FileName = slnPath; }
public void WriteFile(Core.FilePath file, object obj, Core.IProgressMonitor monitor) { }