Ejemplo n.º 1
0
        public void UnknownDateFormat_ThrowsException()
        {
            // Arrange
            EmployeeReader target = new EmployeeReader();

            target.Separator = ',';
            string line = "218, 10, 15-16-2012, NULL";

            // Act
            Assert.Throws <FormatException>(() => target.ParseEmployeeRecord(line));
        }
Ejemplo n.º 2
0
        public void WrongProjectID_ThrowsException()
        {
            // Arrange
            EmployeeReader target = new EmployeeReader();

            target.Separator = ',';
            string line = "143, I2, 2013-11-01, 2014-01-05";

            // Act
            Assert.Throws <FormatException>(() => target.ParseEmployeeRecord(line));
        }