Exemplo n.º 1
0
        public void Test_CantBuyReasons_Aggregate_From_Empty_cant_but_reasons()
        {
            // Prepare
            CantBuyReasons reasons = new CantBuyReasons();

            // Pre-validate
            reasons.Reasons = null;

            // Perform
            string actual = reasons.AggregateReason;

            // Post-validate
            Assert.Equal(string.Empty, actual);
        }
Exemplo n.º 2
0
        public void Test_CantBuyReasons_Aggregate__cant_but_reasons(string reason1, string reason2, string reason3, string expected)
        {
            // Prepare
            CantBuyReasons reasons = new CantBuyReasons();

            // Pre-validate
            reasons.Reasons = new [] { reason1, reason2, reason3 };

            // Perform
            string actual = reasons.AggregateReason;

            // Post-validate
            Assert.Equal(expected, actual);
        }