public void GuaranteedTypeNotOfListType_Exception_ByDelegate_Test()
        {
            var valueGuaranteePopulator = new ValueGuaranteePopulator();

            var values = new List<GuaranteedValues<int>>
            {
                new GuaranteedValues<int>
                {
                    TotalFrequency = 5,
                    Values = new object[] {1, 2, (Func<string>)(() => "Hello"), 4}
                }
            };

            var operableList = new OperableList<int>(null)
            {
                new RecordReference<int>(null, null),
                new RecordReference<int>(null, null),
                new RecordReference<int>(null, null),
                new RecordReference<int>(null, null),
                new RecordReference<int>(null, null),
            };

            Helpers.ExceptionTest(() => valueGuaranteePopulator.Bind(operableList, values),
                typeof(ValueGuaranteeException),
                string.Format(Messages.GuaranteedTypeNotOfListType, "System.Int32", "System.String", "Hello"));
        }
        public void NeitherPercentageNorTotalGiven_Exception_Test()
        {
            var valueGuaranteePopulator = new ValueGuaranteePopulator();

            var values = new List<GuaranteedValues<object>> {new GuaranteedValues<object>()};

            Helpers.ExceptionTest(() => valueGuaranteePopulator.Bind(null, values), typeof(ValueGuaranteeException),
                Messages.NeitherPercentageNorTotalGiven);
        }