예제 #1
0
        public void Build_MustNotReturnNull_Test()
        {
            //Arrange

            //Act
            var ace = Aces.Build();

            //Assert
            Assert.IsNotNull(ace);
        }
예제 #2
0
        public void PointsFor_MustReturnSumOfAmountOfOnes_Test()
        {
            //Arrange
            var ace  = Aces.Build();
            var list = new List <int> {
                1, 2, 3, 4, 5, 6
            };
            var dice = ListBackedAmountOfItems <int> .Build(list);

            //Act
            //Assert
        }
예제 #3
0
        public void PointsFor_MustNotReturnNegative_Test()
        {
            //Arrange
            var ace  = Aces.Build();
            var list = new List <int> {
                2, 2, 2, 2, 2, 2, 2
            };
            var dice = ListBackedAmountOfItems <int> .Build(list);

            //Act
            int actual = ace.PointsFor(dice);

            //Assert
            Assert.IsTrue(actual >= 0);
        }