Exemple #1
0
 private void GetNumer0nData()
 {
     Input = string.Empty;
     InputNumberHistoryEntity.ClearCount();
     inputList.Clear();
     answerNumber = Numer0nService.GenerateRandomData();
 }
Exemple #2
0
        public void InputNumberHistoryEntityTest02()
        {
            var entity = new InputNumberHistoryEntity("5678", 3, 0);

            Assert.AreEqual(entity.Count, 2);
            Assert.AreEqual(entity.InputNumber, "5678");
            Assert.AreEqual(entity.PlaceNumberHit, 3);
            Assert.AreEqual(entity.NumberHit, 0);
        }
Exemple #3
0
        public void InputNumberHistoryEntityTest01()
        {
            var entity = new InputNumberHistoryEntity("1234", 1, 2);

            Assert.AreEqual(entity.Count, 1);
            Assert.AreEqual(entity.InputNumber, "1234");
            Assert.AreEqual(entity.PlaceNumberHit, 1);
            Assert.AreEqual(entity.NumberHit, 2);
        }
Exemple #4
0
        public void InputNumberHistoryEntityTest03()
        {
            InputNumberHistoryEntity.ClearCount();
            var entity = new InputNumberHistoryEntity("9012", 0, 0);

            Assert.AreEqual(entity.Count, 1);
            Assert.AreEqual(entity.InputNumber, "9012");
            Assert.AreEqual(entity.PlaceNumberHit, 0);
            Assert.AreEqual(entity.NumberHit, 0);
        }