Ejemplo n.º 1
0
        public void CountAdvisedMethodOnGenericStructTest()
        {
            var s = new CountAdvisedStruct <int, float>(30);

            s.Z++;
            Assert.AreEqual(31, s.Z);
            Assert.AreEqual(2, s.Access);
        }
Ejemplo n.º 2
0
        public void CountAdvisedMethodTest()
        {
            var s = new CountAdvisedStruct(30);

            s.Z++;
            Assert.AreEqual(31, s.Z);
            Assert.AreEqual(2, s.Access);
        }