Skip to content

Commit

Permalink
Unit test for issue JeffFerguson#50 (schema import)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjundt committed May 31, 2024
1 parent 1936429 commit 92fc38e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions JeffFerguson.Gepsio.Test/IssueTests/SingleMethodIssueTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using System.Xml;

Expand Down Expand Up @@ -148,6 +150,21 @@ public void VerifyFixForIssue16()
}
}

/// <summary>
/// No Support for xsd:import in Schema Handling.
/// As a consequence in ESRD taxonomy, label linkbases are not discovered.
/// </summary>
[TestMethod]
public void VerifyFixForIssue50()
{
var xbrlDoc = new XbrlDocument( );
xbrlDoc.Load( @"..\..\..\IssueTests\52\efrag-2026-12-31-en.xbrl" );
var xbrlSchema = xbrlDoc.XbrlFragments[0].Schemas[0];

Assert.IsTrue( xbrlSchema.DefinitionLinkbases.Any() ); //definition linkbases are in main schema
Assert.IsTrue( xbrlSchema.LabelLinkbases.Any() ); //label linkbases are in imported schema
}

/// <summary>
/// Error parsing PresentationArc Order value when culture is french.
/// </summary>
Expand Down

0 comments on commit 92fc38e

Please sign in to comment.