public void DriverSkill() { var emp = new Employee( "", new Driver()); var driver = emp.GetSkill<Driver>(); Assert.IsNotNull(driver); var mechanician = emp.GetSkill<Mechanician>(); Assert.IsNull(mechanician); }
public void NullSkill() { var emp = new Employee(""); var driver = emp.GetSkill<Driver>(); Assert.IsNull(driver); }