예제 #1
0
        public void TwelveDividedBy_V1()
        {
            var       nz       = NonZeroInteger.Create(2);
            var       actual   = TwelveDividedBy.TwelveDividedBy_V1(nz);
            const int expected = 6;

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void TwelveDividedBy_V2()
        {
            var actual = TwelveDividedBy.TwelveDividedBy_V2(2);

            Assert.IsTrue(actual.HasValue);
            const int expected = 6;

            Assert.AreEqual(expected, actual.Value);
        }