public void extractDataTest() { DataExtractor_Accessor target = new DataExtractor_Accessor(generateRunData(), "svol"); int dataPosition = 0; float[] expected = { 23.42F, 33.35F, 234F }; List<float> actual; actual = target.extractData(dataPosition); CollectionAssert.AreEquivalent(expected, actual); }
public void getDataPositionTest() { DataExtractor_Accessor target = new DataExtractor_Accessor(generateRunData(), "svol"); int expected = 0; int actual; actual = target.getDataPosition(); Assert.AreEqual(expected, actual); target = new DataExtractor_Accessor(generateRunData(), "something"); expected = 2; actual = target.getDataPosition(); Assert.AreEqual(expected, actual); }