public void TestCreatesRevolutionType() { var provider = LeMondCsvDataProvider.Create(revolutionType); Assert.AreEqual(typeof(LeMondRevolutionCsvDataProvider), provider.GetType()); }
public void TestCreatesGForceSTNType() { var provider = LeMondCsvDataProvider.Create(gforceSTNType); Assert.AreEqual(typeof(LeMondGForceSTNCsvDataProvider), provider.GetType()); }
public void ErrorOnNonLeMondFile() { Exception e = ExceptionAssert.Throws <Exception>(() => LeMondCsvDataProvider.Create(nonLeMondFile)); StringAssert.Contains(e.Message, "'LeMond'"); }
public void ErrorOnNonRecognizedTypeOfLeMondFile() { Exception e = ExceptionAssert.Throws <Exception>(() => LeMondCsvDataProvider.Create(nonRecognizedType)); StringAssert.Contains(e.Message, "LeMond device"); }
public void ErrorOnEmptyFile() { Exception e = ExceptionAssert.Throws <Exception>(() => LeMondCsvDataProvider.Create(emptyFile)); StringAssert.Contains(e.Message, "it is empty"); }