示例#1
0
        public void IsMatch_TwoValuesMatches_True()
        {
            var tileOne = new DominoTileEntity(1, 10);
            var tileTwo = new DominoTileEntity(1, 1);

            var result = tileOne.IsMatch(tileTwo);

            Assert.True(result);
        }
示例#2
0
        public void IsMatch_NoMatchingValue_False()
        {
            var tileOne = new DominoTileEntity(1, 10);
            var tileTwo = new DominoTileEntity(2, 9);

            var result = tileOne.IsMatch(tileTwo);

            Assert.False(result);
        }