Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void CanTest_ForFileNamesNotWithTabExtension_IsFalse(string filename)
        {
            var reader = new TabularReader();

            Assert.False(reader.CanRead(filename));
        }
Ejemplo n.º 3
0
        public void CanTest_ForFileNamesWithTabExtension_IsTrue()
        {
            var reader = new TabularReader();

            Assert.True(reader.CanRead("file.tab"));
        }