Esempio n. 1
0
        public void CreateConstraintImpactDTOWithCorrectIdProperty_Test()
        {
            // Arrange
            var constraintImpact = FactoryForTest.GetConstraintImpact(id: 1);

            // Act
            var constraintImpactDTO = factory.Create(constraintImpact);

            // Assert
            Assert.AreEqual(constraintImpact.Id, constraintImpactDTO.Id);
        }
Esempio n. 2
0
        public void ConstrImpactWeightPropShouldBeGreaterThatZero_Test()
        {
            // Arrange
            var constraintImpact = FactoryForTest.GetConstraintImpact(id: 1, weight: 100);

            // Act
            var constraintImpactDTO = factory.Create(constraintImpact);

            // Assert
            Assert.True(constraintImpactDTO.Weight > 0);
        }
Esempio n. 3
0
        public void CreateConstraintImpactDTOWhichHasToBeNotNull_Test()
        {
            // Arrange
            var constraintImpact = FactoryForTest.GetConstraintImpact();

            // Act
            var constraintImpactDTO = factory.Create(constraintImpact);

            // Assert
            Assert.IsNotNull(constraintImpactDTO);
        }