Exemplo n.º 1
0
        public void Null()
        {
            var sut = new ICollectionClass();

            int expected = sut.ExpectedFromCodegen();

            Assert.AreEqual(expected, sut.GetHash(compiler));
            Assert.AreEqual(numFieldsTouched, debugStats.StatsIcollection);
        }
Exemplo n.º 2
0
        public void Elements()
        {
            var sut = new ICollectionClass();

            sut.IColl1 = new List <int>()
            {
                1, 2, 3
            };

            int expected = sut.ExpectedFromCodegen();

            Assert.AreEqual(expected, sut.GetHash(compiler));
            Assert.AreEqual(numFieldsTouched, debugStats.StatsIcollection);
        }