format docs, move comments around

This commit is contained in:
Tyrel Souza 2022-07-26 01:30:36 -04:00
parent 3a15e6454d
commit d8fdf14ec7
5 changed files with 13 additions and 14 deletions

View File

@ -13,5 +13,3 @@ namespace BenchtopParser {
} }
} }
} }
// TODO: normalize snake or pascal case

View File

@ -47,16 +47,18 @@ namespace BenchtopParser {
public class Configuration { public class Configuration {
public String? name { get; set; } public String? name { get; set; }
public String? value { get; set; } public String? value { get; set; }
public String? type { get; set; }
public String? unit { get; set; } public String? unit { get; set; }
public String? type { get; set; } //possible values are: a, c, f, i. Which I presume are Array, Characters, Float, Integer
public Configuration(List<String> config, String data) { public Configuration(List<String> config, String data) {
String[] nameValue = data.Split("="); String[] nameValue = data.Split("=");
name = nameValue[0].Trim(); name = nameValue[0].Trim();
value = nameValue[1].Trim(); value = nameValue[1].Trim();
unit = config[1].Trim(); unit = config[1].Trim();
type = config[2].Trim(); //a, c, f, i type = config[2].Trim();
} }
} }

View File

@ -15,7 +15,6 @@ namespace BenchtopParserTests {
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 { BenchtopParser.I28.Load_TransducerVerify("broken"); });