Skip to content

Commit 116a43f

Browse files
committed
Fix tests.
1 parent 82a3b9f commit 116a43f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Microsoft.Data.DataView/DataViewSchema.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public void GetValue<TValue>(string kind, ref TValue value)
237237
{
238238
var column = Schema.GetColumnOrNull(kind);
239239
if (column == null)
240-
throw new InvalidOperationException($"Invalid call to '{nameof(GetGetter)}'");
240+
throw new InvalidOperationException($"Invalid call to '{nameof(GetValue)}'");
241241
GetGetter<TValue>(column.Value.Index)(ref value);
242242
}
243243

test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,9 @@ protected bool CheckMetadataCallFailure(string kind, DataViewSchema sch, int col
632632
}
633633
catch (InvalidOperationException ex)
634634
{
635-
if (ex.Message != "Invalid call to GetMetadata")
635+
if (ex.Message != "Invalid call to 'GetValue'")
636636
{
637-
Fail("Message from GetMetadata failed call doesn't match expected message: {0}", ex.Message);
637+
Fail("Message from GetValue failed call doesn't match expected message: {0}", ex.Message);
638638
return Failed();
639639
}
640640
}

0 commit comments

Comments
 (0)