public void Reader_Always_ReadsData() { var reader = new TabularReader(); var result = reader.Read(ObjectMother.TestFilePath("data.tab")); Assert.AreEqual("Paul", result.Name().StringValue); Assert.AreEqual("Board", result.Department().StringValue); Assert.AreEqual("BRD12345678", result.EmployeeNumber().StringValue); Assert.AreEqual("CTO", result.Title().StringValue); }
public void CanTest_ForFileNamesNotWithTabExtension_IsFalse(string filename) { var reader = new TabularReader(); Assert.False(reader.CanRead(filename)); }
public void CanTest_ForFileNamesWithTabExtension_IsTrue() { var reader = new TabularReader(); Assert.True(reader.CanRead("file.tab")); }