Remove I28 file, don't need it.
This commit is contained in:
parent
d8fdf14ec7
commit
edd8d7978e
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace BenchtopParser {
|
|
||||||
public class I28 {
|
|
||||||
public static ProgramConfig Load_ProgramConfig(String program_config_value) {
|
|
||||||
ProgramConfig pc = new ProgramConfig(program_config_value);
|
|
||||||
return pc;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static TransducerVerify Load_TransducerVerify(String transducer_verify_value) {
|
|
||||||
TransducerVerify tv = new TransducerVerify(transducer_verify_value);
|
|
||||||
return tv;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -11,7 +11,7 @@ namespace BenchtopParserTests {
|
|||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_ProgramConfig() {
|
public void Test_ProgramConfig() {
|
||||||
var programConfigs = BenchtopParser.I28.Load_ProgramConfig(program_config_value);
|
var programConfigs = new BenchtopParser.ProgramConfig(program_config_value);
|
||||||
Assert.IsNotNull(programConfigs);
|
Assert.IsNotNull(programConfigs);
|
||||||
|
|
||||||
// Check that group collecting works -
|
// Check that group collecting works -
|
||||||
@ -25,13 +25,13 @@ namespace BenchtopParserTests {
|
|||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_ProgramConfig_Throw_ErrorOrder() {
|
public void Test_ProgramConfig_Throw_ErrorOrder() {
|
||||||
Exception ex = Assert.Throws<Exception>(delegate { BenchtopParser.I28.Load_ProgramConfig("EBAE006 L 1,P1"); });
|
Exception ex = Assert.Throws<Exception>(delegate { new BenchtopParser.ProgramConfig("EBAE006 L 1,P1"); });
|
||||||
Assert.That(ex.Message, Is.EqualTo("Setting Program Number Before Start. Error In Config"));
|
Assert.That(ex.Message, Is.EqualTo("Setting Program Number Before Start. Error In Config"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_ProgramConfig_Throw_InvalidProgram() {
|
public void Test_ProgramConfig_Throw_InvalidProgram() {
|
||||||
Exception ex = Assert.Throws<Exception>(delegate { BenchtopParser.I28.Load_ProgramConfig("broken"); });
|
Exception ex = Assert.Throws<Exception>(delegate { new BenchtopParser.ProgramConfig("broken"); });
|
||||||
Assert.That(ex.Message, Is.EqualTo("Invalid Program Config, please provide an I28 Program Config file data"));
|
Assert.That(ex.Message, Is.EqualTo("Invalid Program Config, please provide an I28 Program Config file data"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@ namespace BenchtopParserTests {
|
|||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_TransducerVerify() {
|
public void Test_TransducerVerify() {
|
||||||
BenchtopParser.TransducerVerify tv = BenchtopParser.I28.Load_TransducerVerify(transducer_verify_value);
|
BenchtopParser.TransducerVerify tv = new BenchtopParser.TransducerVerify(transducer_verify_value);
|
||||||
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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_TransducerVerify_Throw_InvalidProgram() {
|
public void Test_TransducerVerify_Throw_InvalidProgram() {
|
||||||
Exception ex = Assert.Throws<Exception>(delegate { BenchtopParser.I28.Load_TransducerVerify("broken"); });
|
Exception ex = Assert.Throws<Exception>(delegate { new BenchtopParser.TransducerVerify("broken"); });
|
||||||
Assert.That(ex.Message, Is.EqualTo("Invalid Transducer Verify Report, please provide a Transducer Verify Report file data"));
|
Assert.That(ex.Message, Is.EqualTo("Invalid Transducer Verify Report, please provide a Transducer Verify Report file data"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user