Skip to content

s4rduk4r/MyTestLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyTestLib .NET Core

MyTestLib is a MyTestEngine done as a library

Test file structure

Every meaningful line has syntax: Key = Value

Spaces between the fields can be unlimited.

Commentary lines start from # symbol.

Rules to follow:

  1. Keywords Test, Author, Date, Time, Mode, Question can be used in any order and in any place of the text
  2. Keywords Value, Answer, Answer+ are ignored if placed before keyword Question
  3. Keywords Value, Answer, Answer+ are considered to be related to the latest occurence of the Question keyword

Supported keywords:

  1. Test - test name
  2. Author - Test author
  3. Date - Creation/Modification date. Must be in format DD.MM.YYYY
  4. Time - Test time in seconds. Note that this is a time for the whole test.
  5. Mode - Test mode. Can be either Loyal or Punish. Punish mode means wrong answers give negative points worth question value divided on all wrong answers. Loyal is the default mode and doesn't account negative points.
  6. Question - Each question begins with keyword Question
  7. Value - how much points is given question worth
  8. Answer - Every keyword Answer is counted towards the latest encountered Question keyword
  9. Answer+ - Correct answers are marked by + suffix

Example test file

Example test file can be found here -> https://github.com/s4rduk4r/MyTest/blob/master/MyTest/Tests/TestExample.mytest

About

MyTestLib is a MyTestEngine done as a library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages