<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed under European Union Public Licence (EUPL) version 1.2.

-->
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="tc434-ubl">
	<assert>
		<scope>UBL-DT-07</scope>
	</assert>
	<test>
		<assert>
			<description>Verify that Binary object elements contain the file name attribute</description>
			<success>UBL-DT-07</success>
		</assert>
		<Invoice
			xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
			xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
			xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">

			<cac:AdditionalDocumentReference>
				<cac:Attachment>
					<cbc:EmbeddedDocumentBinaryObject filename="EHF.pdf">VGVzdGluZyBCYXNlNjQgZW5jb2Rpbmc=</cbc:EmbeddedDocumentBinaryObject>
				</cac:Attachment>
			</cac:AdditionalDocumentReference>
		</Invoice>
	</test>
	<test>
		<assert>
			<description>Trigger error if Binary object elements does not contain the file name attribute</description>
			<error>UBL-DT-07</error>
		</assert>
		<Invoice
			xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
			xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
			xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
			
			<cac:AdditionalDocumentReference>
				<cac:Attachment>
					<cbc:EmbeddedDocumentBinaryObject>VGVzdGluZyBCYXNlNjQgZW5jb2Rpbmc=</cbc:EmbeddedDocumentBinaryObject>
				</cac:Attachment>
			</cac:AdditionalDocumentReference>
		</Invoice>
	</test>
</testSet>
