public void ParameteredConstructor_ExpectedValues()
        {
            // Setup
            var mocks        = new MockRepository();
            var distribution = mocks.StrictMock <IVariationCoefficientDistribution>();

            mocks.ReplayAll();

            // Call
            var designVariable = new SimpleVariationCoefficientDesignVariable(distribution);

            // Assert
            Assert.AreSame(distribution, designVariable.Distribution);
            mocks.VerifyAll(); // Expect no calls on mocks
        }
        public void Distribution_SetToNull_ThrowArgumentNullException()
        {
            // Setup
            var mocks        = new MockRepository();
            var distribution = mocks.StrictMock <IVariationCoefficientDistribution>();

            mocks.ReplayAll();

            var designVariable = new SimpleVariationCoefficientDesignVariable(distribution);

            // Call
            TestDelegate call = () => designVariable.Distribution = null;

            // Assert
            var    exception         = Assert.Throws <ArgumentNullException>(call);
            string customMessagePart = exception.Message.Split(new[]
            {
                Environment.NewLine
            }, StringSplitOptions.None)[0];

            Assert.AreEqual("Een kansverdeling moet opgegeven zijn om op basis van die data een rekenwaarde te bepalen.", customMessagePart);
            mocks.VerifyAll(); // Expect no calls on mocks
        }