Exemple #1
0
        private void ShouldBeEquivalentToCollection(IEnumerable <IEnumerable <Tile> > expectations)
        {
//            example:
//            var t1 = new []
//            {
//                new [] {1,2,3},
//                new [] {4,5,6}
//            };
//            var t2 = new []
//            {
//                new [] {4,5,6},
//                new [] {1,3,2}
//            };
//            t1.Should().BeEquivalentTo(t2);   // true, order doesn't matter
            var tilesCollection = new DistinctTilesTakenEyeGenerator(_tiles).GetAll();

            tilesCollection.Should().BeEquivalentTo(expectations);
        }
Exemple #2
0
        private void ShouldGenerateEmptyCollection()
        {
            var tilesCollection = new DistinctTilesTakenEyeGenerator(_tiles).GetAll();

            tilesCollection.Should().BeEmpty();
        }