public void ProductionFactorComparison_ReturnsLocationList()
        {
            var list = new List <int>(new int[] { 2, 12, 3, 11, 4, 10, 5, 9, 6, 8 });

            list.Sort((pf1, pf2) =>
            {
                return(ProductionFactorComparison.Compare(pf1, pf2));
            });

            list.ShouldContainExact(new int[] { 8, 6, 9, 5, 10, 4, 11, 3, 12, 2 });
        }
        public void ProductionFactorComparison_ValueIsInvalid_ThrowsMeaningfulException(int pf1, int pf2, string parameterName)
        {
            Action action = () => { var i = ProductionFactorComparison.Compare(pf1, pf2); };

            action.ShouldThrow <ArgumentOutOfRangeException>().Message.ShouldBe("Value cannot be 7 or less than 2 or greater than 12.\r\nParameter name: " + parameterName);
        }