Esempio n. 1
0
        public void FinalState()
        {
            _list.RemoveAt(0);
            _list.RemoveAt(1);

            var  manager = new Manager.Manager(_list, 65);
            var item = manager.Get();
            var result = manager.Check(CorrectInputByWord(item.Word));

            result.State.ShouldBeEquivalentTo(CheckState.Done);
        }
Esempio n. 2
0
        public void CheckSameItemReturn()
        {
            var shouldBe = true;
            for (var i = 0; i < 1000; i++)
            {
                var manager = new Manager.Manager(_list, 65);
                var item = manager.Get();
                manager.Check(IncorrectInputByWord(item.Word));
                var item2 = manager.Get();
                shouldBe = !item2.Equals(item);
                if (!shouldBe)
                {
                    break;
                }
            }

            shouldBe.Should().BeTrue();
        }
Esempio n. 3
0
        public void LastIncorrectItem()
        {
            _list.RemoveAt(0);
            _list.RemoveAt(1);

            var manager = new Manager.Manager(_list, 65);
            var item = manager.Get();
            manager.Check(IncorrectInputByWord(item.Word));
            var item2 = manager.Get();

            Assert.True(item.Equals(item2));
        }