Exemplo n.º 1
0
        public void ReadEmployeeFromCSVLine_Returns_NewEmployee()
        {
            string line     = "Employee1,Employee0,100";
            var    employee = ReadFromCSVLine.ReadEmployeeFromCSVLine(line);

            Assert.Equal("Employee0", employee.ManagerId);
        }
Exemplo n.º 2
0
        public void ReadEmployeeFromCSVLine_ReturnsNull_WhenInputIsInvalid()
        {
            string line     = "Employee1,Employee0100";
            var    employee = ReadFromCSVLine.ReadEmployeeFromCSVLine(line);

            Assert.Null(employee);
        }