public void Clone_AllPropertiesSet_ReturnNewInstanceWithCopiedValues() { // Setup GrassCoverErosionOutwardsWaveConditionsCalculation original = GrassCoverErosionOutwardsTestDataGenerator.GetRandomGrassCoverErosionOutwardsWaveConditionsCalculation(); original.Output = GrassCoverErosionOutwardsTestDataGenerator.GetRandomGrassCoverErosionOutwardsWaveConditionsOutput(); // Call object clone = original.Clone(); // Assert CoreCloneAssert.AreObjectClones(original, clone, GrassCoverErosionOutwardsCloneAssert.AreClones); }
public void HasOutput_OutputSet_ReturnsTrue() { // Setup var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { Output = GrassCoverErosionOutwardsTestDataGenerator.GetRandomGrassCoverErosionOutwardsWaveConditionsOutput() }; // Call bool hasOutput = calculation.HasOutput; // Assert Assert.IsTrue(hasOutput); }
public void ShouldCalculate_OutputSet_ReturnsFalse() { // Setup var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { Output = GrassCoverErosionOutwardsTestDataGenerator.GetRandomGrassCoverErosionOutwardsWaveConditionsOutput() }; // Call bool shouldCalculate = calculation.ShouldCalculate; // Assert Assert.IsFalse(shouldCalculate); }
public void ClearOutput_Always_SetsOutputToNull() { // Setup var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { Output = GrassCoverErosionOutwardsTestDataGenerator.GetRandomGrassCoverErosionOutwardsWaveConditionsOutput() }; // Precondition Assert.IsNotNull(calculation.Output); // Call calculation.ClearOutput(); // Assert Assert.IsNull(calculation.Output); }