-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added check for use of exceptions tag with write params. (#40)
* Added check for use of exceptions tag with write params. * Moved check for parameter type on parameters with exceptions to CheckExceptionsTag * Reordered CheckExceptionsTag * Moved ErrorMessage for write param type combination with exceptions tag to CheckExceptionsTag in ErrorMessages.xml * Updated FullId of Error.ExceptionIncompatibleWithParamType * Update ProtocolTests/Protocol/Params/Param/Interprete/Exceptions/CheckExceptionsTag/CheckExceptionsTag.cs Co-authored-by: Michiel Oda <[email protected]> --------- Co-authored-by: Michiel Oda <[email protected]>
- Loading branch information
1 parent
f8dbf6f
commit 8442829
Showing
6 changed files
with
164 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ptions/CheckExceptionsTag/Samples/Validate/Invalid/ExceptionIncompatibleWithParamType.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Protocol xmlns="http://www.skyline.be/validatorProtocolUnitTest"> | ||
<Params> | ||
<Param id="1"> | ||
<Type>write</Type> | ||
<Interprete> | ||
<Exceptions> | ||
</Exceptions> | ||
</Interprete> | ||
</Param> | ||
<Param id="2"> | ||
<Type>write bit</Type> | ||
<Interprete> | ||
<Exceptions> | ||
</Exceptions> | ||
</Interprete> | ||
</Param> | ||
</Params> | ||
</Protocol> |
10 changes: 10 additions & 0 deletions
10
...ol/Params/Param/Interprete/Exceptions/CheckExceptionsTag/Samples/Validate/Valid/Valid.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Protocol xmlns="http://www.skyline.be/validatorProtocolUnitTest"> | ||
<Params> | ||
<Param id="1"> | ||
<Type>write</Type> | ||
</Param> | ||
<Param id="2"> | ||
<Type>write bit</Type> | ||
</Param> | ||
</Params> | ||
</Protocol> |