示例#1
0
 public void can_reset()
 {
     sut = new Normalschein(new Normalfeld(1, 2, 3, 4, 5, 6));
     Assert.IsFalse(sut.IsEmpty());
     sut.reset();
     Assert.IsTrue(sut.IsEmpty());
     sut = new Systemschein(new Systemfeld(1, 2, 3, 4, 5, 6));
     sut.reset();
     Assert.IsTrue(sut.IsEmpty());
 }
示例#2
0
        public void ctor()
        {
            sut = new Normalschein();
            Assert.IsTrue(sut.IsEmpty());
            Assert.AreEqual(12, sut.Tippfelder.Count);
            Assert.IsTrue(sut.Tippfelder.All(x => 6 == x.SID));

            sut = new Systemschein();
            Assert.IsTrue(sut.IsEmpty());
            Assert.AreEqual(4, sut.Tippfelder.Count);
            Assert.IsTrue(sut.Tippfelder.All(x => 0 == x.SID));
        }