XElement ReferenceElement(AssetReferenceManifest reference)
 {
     return new XElement(
         "Reference",
         new XAttribute("Path", reference.Path),
         new XAttribute("Type", Enum.GetName(typeof(AssetReferenceType), reference.Type)),
         new XAttribute("SourceLineNumber", reference.SourceLineNumber.ToString(CultureInfo.InvariantCulture))
     );
 }
Beispiel #2
0
 XElement ReferenceElement(AssetReferenceManifest reference)
 {
     return(new XElement(
                "Reference",
                new XAttribute("Path", reference.Path),
                new XAttribute("Type", Enum.GetName(typeof(AssetReferenceType), reference.Type)),
                new XAttribute("SourceLineNumber", reference.SourceLineNumber.ToString(CultureInfo.InvariantCulture))
                ));
 }
 void ManifestReferenceEqualsAssetReference(AssetReferenceManifest referenceManifest, AssetReference reference)
 {
     referenceManifest.Path.ShouldEqual(reference.Path);
     referenceManifest.Type.ShouldEqual(reference.Type);
     referenceManifest.SourceLineNumber.ShouldEqual(reference.SourceLineNumber);
 }
 void ManifestReferenceEqualsAssetReference(AssetReferenceManifest referenceManifest, AssetReference reference)
 {
     referenceManifest.Path.ShouldEqual(reference.Path);
     referenceManifest.Type.ShouldEqual(reference.Type);
     referenceManifest.SourceLineNumber.ShouldEqual(reference.SourceLineNumber);
 }