Browse Source
Rearranged TestingConstants.fs and UnitTests.fs. Refactored File Access unit tests (C# habits). Wrote contents test in UnitTests.fs for TextInFileIsValid function.master
Craig Oates
6 years ago
4 changed files with 51 additions and 17 deletions
@ -1,21 +1,33 @@ |
|||||||
module internal TestingConstants |
module internal TestingConstants |
||||||
|
|
||||||
// Use these to reference the built-in .txt files in Test Centre. |
(* Valid Text Files |
||||||
|
=================================================================================================================== |
||||||
|
Use these to quickly reference the built-in .txt files within Test Centre. |
||||||
|
They should, also, mimic the .txt files in Wet Pancake/textFiles. |
||||||
|
If you are noticing inconsistent behaviour between Test Centre and Wet Pancake, make sure these files match. *) |
||||||
|
|
||||||
|
[<Literal>] |
||||||
|
let ConsoleWaterworks = __SOURCE_DIRECTORY__ + @"\TextFiles\console-waterworks-announcement.txt" |
||||||
|
|
||||||
[<Literal>] |
[<Literal>] |
||||||
let DesktopClock = __SOURCE_DIRECTORY__ + @"\TextFiles\desktop-clock-info.txt" |
let DesktopClock = __SOURCE_DIRECTORY__ + @"\TextFiles\desktop-clock-info.txt" |
||||||
|
|
||||||
[<Literal>] |
[<Literal>] |
||||||
let ConsoleWaterworks = __SOURCE_DIRECTORY__ + @"\TextFiles\console-waterworks-announcement.txt" |
let TestPost = __SOURCE_DIRECTORY__ + @"\TextFiles\test-post.txt" |
||||||
|
|
||||||
[<Literal>] |
[<Literal>] |
||||||
let WordGenerator = __SOURCE_DIRECTORY__ + @"\TextFiles\word-generator.txt" |
let WordGenerator = __SOURCE_DIRECTORY__ + @"\TextFiles\word-generator.txt" |
||||||
|
|
||||||
[<Literal>] |
(* Invalid Input |
||||||
let TestPost = __SOURCE_DIRECTORY__ + @"\TextFiles\test-post.txt" |
=================================================================================================================== |
||||||
|
These values should not mimic or reference anything in Wet Pancake. |
||||||
|
Below should just be dummy content/values. *) |
||||||
|
|
||||||
[<Literal>] |
[<Literal>] |
||||||
let InvalidFilePathInput = __SOURCE_DIRECTORY__ + @"Invalid/file.txt" |
let InvalidFilePathInput = __SOURCE_DIRECTORY__ + @"Invalid/file.txt" |
||||||
|
|
||||||
[<Literal>] |
[<Literal>] |
||||||
let InvalidFileTypeInput = __SOURCE_DIRECTORY__ + @"\TextFiles\desktop-clock-info.doc" |
let InvalidFileTypeInput = __SOURCE_DIRECTORY__ + @"\TextFiles\desktop-clock-info.doc" |
||||||
|
|
||||||
|
[<Literal>] |
||||||
|
let InvalidTextFile = __SOURCE_DIRECTORY__ + @"\TextFiles\invalid-text.txt" |
||||||
|
@ -0,0 +1 @@ |
|||||||
|
This file does not contain a vaild end token |
Loading…
Reference in new issue