public void CreateConstraintImpactDTOWithCorrectIdProperty_Test() { // Arrange var constraintImpact = FactoryForTest.GetConstraintImpact(id: 1); // Act var constraintImpactDTO = factory.Create(constraintImpact); // Assert Assert.AreEqual(constraintImpact.Id, constraintImpactDTO.Id); }
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); }
public void CreateConstraintImpactDTOWhichHasToBeNotNull_Test() { // Arrange var constraintImpact = FactoryForTest.GetConstraintImpact(); // Act var constraintImpactDTO = factory.Create(constraintImpact); // Assert Assert.IsNotNull(constraintImpactDTO); }