Exemple #1
0
        public void TestAddingNullToList()
        {
            var l = new HashSet <IPiece>();

            Assert.False(l.AddNonNull(null));

            Assert.Empty(l);
        }
Exemple #2
0
        public void TestAddingNonNullToList()
        {
            var l = new HashSet <IPiece>();

            Assert.True(l.AddNonNull(new MockedPiece(true)));

            Assert.Single(l);
        }