Esempio n. 1
0
        public void TwelveDividedBy_V1()
        {
            var       nz       = NonZeroIntegerAnswer.Create(2);
            var       actual   = TwelveDividedBy_Answer.TwelveDividedBy_V1(nz);
            const int expected = 6;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        /// <summary>
        /// With constrained input
        /// </summary>
        public static int TwelveDividedBy_V1(NonZeroIntegerAnswer input)
        {
            var nz = input.Value;

            return(12 / nz);
        }
 /// <summary>
 /// With constrained input
 /// </summary>
 public static int TwelveDividedBy_V1(NonZeroIntegerAnswer input)
 {
     var nz = input.Value;
     return 12/nz;
 }