mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Fix some more C# unit test issues.
Ignore bin and obj directories under /csharp
This commit is contained in:
parent
f3fb1d5ff8
commit
97dc949e3f
2 changed files with 5 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -29,3 +29,5 @@ onnxruntime_profile*.json
|
||||||
/docs/python/examples/*.onnx
|
/docs/python/examples/*.onnx
|
||||||
/docs/python/examples/graph.*
|
/docs/python/examples/graph.*
|
||||||
/docs/python/*_LICENSE
|
/docs/python/*_LICENSE
|
||||||
|
/csharp/**/obj/
|
||||||
|
/csharp/**/bin/
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,8 @@ namespace Microsoft.ML.OnnxRuntime.Tests
|
||||||
var container = new List<NamedOnnxValue>();
|
var container = new List<NamedOnnxValue>();
|
||||||
container.Add(NamedOnnxValue.CreateFromTensor<float>("wrong_name", tensor));
|
container.Add(NamedOnnxValue.CreateFromTensor<float>("wrong_name", tensor));
|
||||||
var ex = Assert.Throws<OnnxRuntimeException>(() => session.Run(container));
|
var ex = Assert.Throws<OnnxRuntimeException>(() => session.Run(container));
|
||||||
Assert.Equal("[ErrorCode:InvalidArgument] Missing required inputs: data_0 ", ex.Message);
|
Assert.Equal("[ErrorCode:InvalidArgument] Missing required inputs: data_0", ex.Message);
|
||||||
session.Dispose();
|
session.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
@ -179,7 +179,7 @@ namespace Microsoft.ML.OnnxRuntime.Tests
|
||||||
container.Add(nov1);
|
container.Add(nov1);
|
||||||
container.Add(nov2);
|
container.Add(nov2);
|
||||||
var ex = Assert.Throws<OnnxRuntimeException>(() => session.Run(container));
|
var ex = Assert.Throws<OnnxRuntimeException>(() => session.Run(container));
|
||||||
Assert.Equal("[ErrorCode:InvalidArgument] Invalid Feed Input Names: extra. Valid input names are: data_0 ", ex.Message);
|
Assert.StartsWith("[ErrorCode:InvalidArgument] Invalid Feed Input Names: extra. Valid input names are: ", ex.Message);
|
||||||
session.Dispose();
|
session.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue