public void Employee_Creation_FieldsProperlyFieldEnum() { var employee = new EmployeeIT("Emilia", 12345, "Koszalin", "Csharp"); Assert.That(employee.FirstName, Is.EqualTo("Emilia")); Assert.That(employee.IDNumber, Is.EqualTo(12345)); Assert.That(employee.DepartmentToString, Is.EqualTo("Koszalin")); Assert.That(employee.ProgramingLanguagesToString, Is.EqualTo("Csharp")); }
public void Employee_Creation_FieldsProperlyFieldWithProfesion() { var employee = new EmployeeIT("Emilia", 123, "Koszalin", "Csharp"); var employee1 = new EmployeeIT("Marek", 234, "Koszalin", "Cplus"); var employee2 = new EmployeeIT("Bartek", 345, "Szczecin", "Python"); Assert.That(employee.FirstName, Is.EqualTo("Emilia")); Assert.That(employee.IDNumber, Is.EqualTo(123)); Assert.That(employee.Department, Is.EqualTo("Koszalin")); Assert.That(employee.ProgramingLanguage, Is.EqualTo("Csharp")); }
public void Employee_LocationTest(Locations loc, bool result) { var employee = new EmployeeIT("Bartek", 345, loc, "Python"); Assert.That(employee.IsNorthOfWarsaw, Is.EqualTo(result)); }