Пример #1
0
        public void PosisjonAngirAntall15()
        {
            var r = new Luke5().Generer(15);

            r.Print();
            Assert.That(r.Tallene, Is.EquivalentTo(new[] { 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 }), "Tallene");
        }
Пример #2
0
        public void PosisjonAngirAntall6()
        {
            var r = new Luke5().Generer(6);

            r.Print();
            Assert.AreEqual(15, r.Sum, "Sum");
            Assert.That(r.Tallene, Is.EquivalentTo(new[] { 1, 2, 2, 3, 3, 4 }), "Tallene");
        }