more Rider changes
This commit is contained in:
parent
2a6d30bf50
commit
f8b773da1c
@ -28,9 +28,9 @@ namespace BenchtopParser {
|
|||||||
public TransducerVerify() {
|
public TransducerVerify() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public TransducerVerify(string transducer_verify_value) {
|
public TransducerVerify(string transducerVerifyValue) {
|
||||||
const string separator = "===============================================================";
|
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
|
// Check if proper document
|
||||||
string title = documentLines[0];
|
string title = documentLines[0];
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
namespace BenchtopParserTests {
|
namespace BenchtopParserTests {
|
||||||
public class Program_Config_Tests {
|
public class Program_Config_Tests {
|
||||||
public String program_config_value;
|
public String ProgramConfigValue;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup() {
|
public void Setup() {
|
||||||
program_config_value = File.ReadAllText(
|
ProgramConfigValue = File.ReadAllText(
|
||||||
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Program Config.txt")
|
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Program Config.txt")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_ProgramConfig() {
|
public void Test_ProgramConfig() {
|
||||||
BenchtopParser.ProgramConfig programConfigs = new(program_config_value);
|
BenchtopParser.ProgramConfig programConfigs = new(ProgramConfigValue);
|
||||||
Assert.IsNotNull(programConfigs);
|
Assert.IsNotNull(programConfigs);
|
||||||
|
|
||||||
// Check that group collecting works -
|
// Check that group collecting works -
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
namespace BenchtopParserTests {
|
namespace BenchtopParserTests {
|
||||||
public class Transducer_Verify_Tests {
|
public class Transducer_Verify_Tests {
|
||||||
public String transducer_verify_value;
|
public String TransducerVerifyValue;
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup() {
|
public void Setup() {
|
||||||
transducer_verify_value = File.ReadAllText(
|
TransducerVerifyValue = File.ReadAllText(
|
||||||
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Transducer Verify.txt")
|
Path.Combine(TestContext.CurrentContext.TestDirectory, @"TestFiles\Transducer Verify.txt")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_TransducerVerify() {
|
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].Id, Is.EqualTo(1));
|
||||||
Assert.That(tv.Transducers[1].Name, Is.EqualTo("CTS D34-442 115PSIA"));
|
Assert.That(tv.Transducers[1].Name, Is.EqualTo("CTS D34-442 115PSIA"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user