public void Clone_AllPropertiesSet_ReturnNewInstanceWithCopiedValues() { // Setup var original = new WaveConditionsInput(); WaveConditionsTestDataGenerator.SetRandomDataToWaveConditionsInput(original); // Call object clone = original.Clone(); // Assert CoreCloneAssert.AreObjectClones(original, clone, WaveConditionsCloneAssert.AreClones); }
public void Clone_NotAllPropertiesSet_ReturnNewInstanceWithCopiedValues() { // Setup var original = new WaveConditionsInput(); WaveConditionsTestDataGenerator.SetRandomDataToWaveConditionsInput(original); original.ForeshoreProfile = null; original.HydraulicBoundaryLocation = null; // Call object clone = original.Clone(); // Assert CoreCloneAssert.AreObjectClones(original, clone, WaveConditionsCloneAssert.AreClones); }