示例#1
0
        public void Value()
        {
            var sut = new EnumHolder();

            sut.Enum1 = EnumHolder.MyEnum.b;

            int expected = sut.ExpectedFromCodegen();

            Assert.AreEqual(expected, sut.GetHash(compiler));
            Assert.AreEqual(0, debugStats.statsPrimitive);
            Assert.AreEqual(1, debugStats.StatsEnum);
        }
示例#2
0
        public void Empty()
        {
            Compiler.Logging = true;
            var sut = new EnumHolder();

            int expected = sut.ExpectedFromCodegen();

            Assert.AreEqual(expected, sut.GetHash(compiler));
            Assert.AreEqual(1, debugStats.StatsEnum);
            Assert.AreEqual(0, debugStats.statsPrimitive);
            Assert.AreEqual(0, debugStats.StatsIcollection);
        }