public void SynchronizeStructureInput_ChangedStructure_ExpectedValues() { // Setup var differentStructure = new HeightStructure(new HeightStructure.ConstructionProperties { Id = "Test id", Name = "Test name", Location = new Point2D(-1, -1) }); var input = new HeightStructuresInput { Structure = new TestHeightStructure() }; input.Structure.CopyProperties(differentStructure); // Precondition AssertHeightStructureInput(new TestHeightStructure(), input); // Call input.SynchronizeStructureInput(); // Assert AssertHeightStructureInput(differentStructure, input); }
public void SynchronizeStructureInput_StructureNotSet_ExpectedValues() { // Setup var input = new HeightStructuresInput(); // Call input.SynchronizeStructureInput(); // Assert AssertHeightStructureInput(null, input); }