Skip to content
Snippets Groups Projects
Commit bfd79683 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Fix.

parent 3e167530
Branches
No related tags found
1 merge request!51Resolve "Remove user-supplied values"
......@@ -12,7 +12,7 @@ namespace Test.Web.UnitTests
{
var simulation =
new SingleSimulation(
dataset: "4, four\n5, five",
dataset: "4\n5",
queryset: "4, 5",
datasetSize: 5,
querysetSize: 5,
......@@ -49,7 +49,7 @@ namespace Test.Web.UnitTests
var exception = Assert.Throws<SingleSimulation.MalformedSetException>(
() =>
new SingleSimulation(
dataset: "4, four\n5, five",
dataset: "4\n5",
queryset: "4",
datasetSize: 5,
querysetSize: 5,
......@@ -61,23 +61,6 @@ namespace Test.Web.UnitTests
Assert.Equal("Queryset", exception.Set);
}
[Fact]
public void SimulationLongString()
{
var exception = Assert.Throws<SingleSimulation.MalformedSetException>(
() => new SingleSimulation(
dataset: "5, 123456789xxxxx",
queryset: "5, 6",
datasetSize: 1,
querysetSize: 1,
pageSize: 5,
protocol: global::ORESchemes.Shared.ORESchemes.NoEncryption,
random: new Random()
)
);
Assert.Equal("Dataset", exception.Set);
}
[Fact]
public void SimulationDefault()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment