示例#1
0
        public void Example()
        {
            var employee1 = new ItEmployee("Emka", 66666, Locations.Koszalin, ProgrammingLanguages.Csharp);
            var employee2 = new Employee("Bartek", 61111, Locations.Szczecin);

            Console.WriteLine(employee1.PrintEmployee());
            Console.WriteLine(employee2.PrintEmployee());
        }
        public void EmployeeIT_CreationUsingEnum_FiledProperlyField()
        {
            var employee = new ItEmployee("Emka", 666, Locations.Koszalin, "C#");


            Assert.That(employee.BadgeID, Is.EqualTo(666));
            Assert.That(employee.LocationString, Is.EqualTo("Koszalin"));
            Assert.That(employee.Name, Is.EqualTo("Emka"));
        }
示例#3
0
        public void EmployeeIT_CreationUsinEnum_FieldProperlyField()
        {
            var employee3 = new ItEmployee("Elka", 123, "Wroclaw", "CSharp");

            Assert.That(employee3.BadgeID, Is.EqualTo(123));
            Assert.That(employee3.LocationToString, Is.EqualTo("Wroclaw"));
            Assert.That(employee3.Name, Is.EqualTo("Elka"));
            Assert.That(employee3.ProgrammingToString, Is.EqualTo("CSharp"));
        }
示例#4
0
        public void EmployeeITData()
        {
            var employee1 = new ItEmployee("Marcin", 66666, Locations.Koszalin, ProgrammingLanguages.Csharp);
            var employee2 = new ItEmployee("Bartek", 61111, Locations.Szczecin, ProgrammingLanguages.Python);

            //employee1.firstName = "true";
            Assert.That(employee1.firstName, Is.EqualTo("Marcin"));
            Assert.That(employee1.stringID, Is.EqualTo(66666));
            Assert.That(employee1.LocationString, Is.EqualTo("Koszalin"));
            Assert.That(employee1.ProgrammingString, Is.EqualTo("Csharp"));

            Assert.That(employee2.firstName, Is.EqualTo("Bartek"));
            Assert.That(employee2.stringID, Is.EqualTo(61111));
            Assert.That(employee2.LocationString, Is.EqualTo("Szczecin"));
            Assert.That(employee2.ProgrammingString, Is.EqualTo("Python")); //Here is something wrong!!!! I have Python but it passes when I have Csharp? why?
        }
        public void ItEmployee_IsNorthOfWarsow(Locations loc, bool result)
        {
            var employee = new ItEmployee("Emka", 666, loc, "C#");

            Assert.That(employee.IsNorthOfWarsaw, Is.EqualTo(result));
        }
示例#6
0
        public void NorthOrSouth(Locations loc, bool result)
        {
            var employee = new ItEmployee("Bartek", 11111, loc, "Python");

            Assert.That(employee.IsNorthOfWarsaw, Is.EqualTo(result));
        }