more Rider changes

This commit is contained in:
Tyrel Souza 2022-07-26 22:33:45 -04:00
parent 2a6d30bf50
commit f8b773da1c
3 changed files with 8 additions and 8 deletions

View File

@ -28,9 +28,9 @@ namespace BenchtopParser {
public TransducerVerify() {
}
public TransducerVerify(string transducer_verify_value) {
public TransducerVerify(string transducerVerifyValue) {
const string separator = "===============================================================";
List<string> documentLines = transducer_verify_value.Split(new string[] { Environment.NewLine }, StringSplitOptions.TrimEntries).ToList();
List<string> documentLines = transducerVerifyValue.Split(new string[] { Environment.NewLine }, StringSplitOptions.TrimEntries).ToList();
// Check if proper document
string title = documentLines[0];

View File

@ -1,17 +1,17 @@
namespace BenchtopParserTests {
public class Program_Config_Tests {
public String program_config_value;
public String ProgramConfigValue;
[SetUp]
public void Setup() {
program_config_value = File.ReadAllText(
ProgramConfigValue = File.ReadAllText(
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Program Config.txt")
);
}
[Test]
public void Test_ProgramConfig() {
BenchtopParser.ProgramConfig programConfigs = new(program_config_value);
BenchtopParser.ProgramConfig programConfigs = new(ProgramConfigValue);
Assert.IsNotNull(programConfigs);
// Check that group collecting works -

View File

@ -1,16 +1,16 @@
namespace BenchtopParserTests {
public class Transducer_Verify_Tests {
public String transducer_verify_value;
public String TransducerVerifyValue;
[SetUp]
public void Setup() {
transducer_verify_value = File.ReadAllText(
TransducerVerifyValue = File.ReadAllText(
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Transducer Verify.txt")
);
}
[Test]
public void Test_TransducerVerify() {
BenchtopParser.TransducerVerify tv = new(transducer_verify_value);
BenchtopParser.TransducerVerify tv = new(TransducerVerifyValue);
Assert.That(tv.Transducers[1].Id, Is.EqualTo(1));
Assert.That(tv.Transducers[1].Name, Is.EqualTo("CTS D34-442 115PSIA"));
}