Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified string comparision to add "Trim()" so that tests work on bot… #164

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void Validate_ellipsoid_tissue_with_off_zaxis_center_and_cylindrical_dete
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: off center ellipsoid in tissue with cylindrical detector defined: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: off center ellipsoid in tissue with cylindrical detector defined: user discretion advised"));
}

/// <summary>
Expand All @@ -158,7 +158,7 @@ public void Validate_ellipsoid_tissue_without_cylindrical_symmetry_and_cylindric
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: ellipsoid with Dx != Dy in tissue with cylindrical detector defined: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: ellipsoid with Dx != Dy in tissue with cylindrical detector defined: user discretion advised"));
}

/// <summary>
Expand Down Expand Up @@ -187,7 +187,7 @@ public void Validate_voxel_tissue_and_cylindrical_detectors_issues_warning()
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: voxel in tissue with cylindrical detector defined: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: voxel in tissue with cylindrical detector defined: user discretion advised"));
}

/// <summary>
Expand Down Expand Up @@ -226,7 +226,7 @@ public void Validate_angled_source_and_cylindrical_detectors_are_not_defined_tog
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: Angled source and cylindrical coordinate detector defined: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: Angled source and cylindrical coordinate detector defined: user discretion advised"));
}

/// <summary>
Expand Down Expand Up @@ -271,7 +271,7 @@ public void Validate_ellipsoid_tissue_and_ROfFx_detectors_defined_together_issue
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: R(fx) theory assumes a homogeneous or layered tissue geometry: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: R(fx) theory assumes a homogeneous or layered tissue geometry: user discretion advised"));
}

/// <summary>
Expand Down Expand Up @@ -301,7 +301,7 @@ public void Validate_voxel_tissue_and_ROfFx_detectors_defined_together_issues_wa
Console.SetOut(output);
var result = SimulationInputValidation.ValidateInput(input);
Assert.IsTrue(result.IsValid); // only warning
Assert.That(output.ToString(), Is.EqualTo("Warning: R(fx) theory assumes a homogeneous or layered tissue geometry: user discretion advised\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: R(fx) theory assumes a homogeneous or layered tissue geometry: user discretion advised"));
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void Validate_Create_method_results()
ops,
ForwardModel.SDA);
Assert.IsTrue(diffusionParameters != null);
Assert.That(output.ToString(), Is.EqualTo("Warning: Mua >= Musp\r\n"));
Assert.That(output.ToString().Trim(), Is.EqualTo("Warning: Mua >= Musp"));
}

/// <summary>
Expand Down
Loading