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); }
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); }