54 references to Fail
Microsoft.ML.Core.Tests (19)
UnitTests\CoreBaseTestClass.cs (10)
262Fail($"Different types {type1} and {type2}"); 283Fail("Left has more rows at position: {0}", curs1.Position); 285Fail("Right has more rows at position: {0}", curs2.Position); 312Fail("Different values in column {0} of row {1}", col, curs1.Position); 317Fail("Different values in ID of row {0}", curs1.Position); 351Fail("Different types"); 368Fail("Left has more rows at position: {0}", curs1.Position); 370Fail("Right {0} has more rows at position: {1}", col, cursors[2].Position); 384Fail("Different values in column {0} of row {1}", col, curs1.Position); 390Fail("Different values in ID values for column {0} cursor of row {1}", col, curs1.Position);
UnitTests\TestResourceDownload.cs (9)
44Fail("Uri could not be created"); 49Fail("Environment variable not set properly"); 68Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted."); 74Fail("Uri could not be created"); 78Fail("Environment variable not set properly"); 97Fail($"File '{Path.Combine(saveToDir, fileName)}' should have been deleted."); 105Fail("Environment variable not set properly"); 121Fail(String.Format("Expected zero length error string. Received error: {0}", results.ErrorMessage)); 123Fail("Download did not complete successfully");
Microsoft.ML.Predictor.Tests (1)
CompareBaselines.cs (1)
334Fail("Parsing a double failed!");
Microsoft.ML.TestFramework (34)
BaseTestBaseline.cs (12)
227Fail(msg); 234Fail(msg, args); 454Fail("Baseline sequence had {0} items, but the suffix seems to have more", suffixList.Count); 471Fail("Baseline sequence mismatched {0} length suffix {1} item from the end", 525Fail("Output is shorter than the skip value of {0}!", skip); 537Fail("Couldn't match output file line to a line in the baseline!"); 564Fail("Output and baseline different lengths: '{0}'", relPath); 566Fail("Output and baseline mismatch at line {1}, expected '{2}' but got '{3}' : '{0}'", relPath, count, line1, line2); 663Fail(message + 942Fail("Output file not found: {0}", outPath); 956Fail("Baseline file not found: {0}", basePath); 975Fail("The test threw an exception - {0}", e);
DataPipe\TestDataPipe.cs (4)
509Fail($"Values different values in VerifyMatch<{typeof(TSrc).Name}, {typeof(TDst).Name}>: converted from {typeof(TSrc).Name} to {typeof(TDst).Name}: {v}. Parsed from text: {dst}"); 595Fail("Values don't match in columns F13, F23"); 637Fail("Values don't match"); 778Fail("Did not find expected columns");
DataPipe\TestDataPipeBase.cs (18)
334Fail("Parsing arguments failed!"); 367Fail("Custom unparse failed on '{0}' starting with '{1}': '{2}' vs '{3}'", commandLineFactory.Name, str, exp1, exp2); 371Fail($"TestDataPipeBase was called with a non command line loader or transform '{factory}'"); 418Fail("Couldn't parse the args '{0}' in '{1}'", argsLoader, pathData); 484Fail("Null returned from GetMetadataTypes"); 489Fail("Duplicate metadata type: {0}", metaColumn.Name); 496Fail("SlotNames types don't match"); 506Fail("KeyValues types don't match"); 719Fail($"Different types {type1} and {type2}"); 740Fail("Left has more rows at position: {0}", curs1.Position); 742Fail("Right has more rows at position: {0}", curs2.Position); 770Fail("Different values in column {0} of row {1}", col, curs1.Position); 775Fail("Different values in ID of row {0}", curs1.Position); 809Fail("Different types"); 826Fail("Left has more rows at position: {0}", curs1.Position); 828Fail("Right {0} has more rows at position: {1}", col, cursors[2].Position); 842Fail("Different values in column {0} of row {1}", col, curs1.Position); 848Fail("Different values in ID values for column {0} cursor of row {1}", col, curs1.Position);