Beispiel #1
0
        public void AssertFileState(int fileIndex, string expectedFilename, HashDiffType expectedSyncState)
        {
            RuntimeScriptFile scriptFileState = _scriptFilesComparer.AllFileSystemScriptFiles[fileIndex];

            Assert.That(scriptFileState.Filename == expectedFilename, $"{_testName} >>> The {fileIndex + 1}st {_scriptFilesComparer.ScriptFileType.FileTypeCode} file should be: '{expectedFilename}' but was: '{scriptFileState.Filename}'");
            Assert.That(scriptFileState.HashDiffType == expectedSyncState, $"{_testName} >>> The {fileIndex + 1}st {_scriptFilesComparer.ScriptFileType.FileTypeCode} SyncType should be: '{expectedSyncState}' but was: '{scriptFileState.HashDiffType}'");
        }
Beispiel #2
0
 private static void AssertFileHashState(string testName, RuntimeScriptFile runtimeFile, HashDiffType targetHashState)
 {
     Assert.That(runtimeFile.HashDiffType == targetHashState, $"{testName} >>> The {runtimeFile.ScriptFileType.FileTypeCode} file: '{runtimeFile.Filename}' should be '{targetHashState}' hash state, but was '{runtimeFile.HashDiffType}'");
 }
Beispiel #3
0
 private static void AssertFilesListHashState(string testName, IEnumerable <RuntimeScriptFile> runtimeFiles, HashDiffType targetHashState)
 {
     foreach (var file in runtimeFiles)
     {
         AssertFileHashState(testName, file, targetHashState);
     }
 }