public void RefEquals_By_RefParameter_Test()
        {
            var token1 = new DynamicProxyToken();
            var token2 = this.RefAssignToken(ref token1);

            Assert.IsTrue(token1 == token2);
        }
        public void NotRefEquals_Test()
        {
            var token1 = new DynamicProxyToken();
            var token2 = new DynamicProxyToken();

            Assert.IsTrue(token1 != token2);
        }
Beispiel #3
0
        public void RefEquals_By_RefParameter_Test()
        {
            var token1 = new DynamicProxyToken();
            var token2 = this.RefAssignToken(ref token1);

            Assert.IsTrue(token1 == token2);
        }
Beispiel #4
0
        public void NotRefEquals_Test()
        {
            var token1 = new DynamicProxyToken();
            var token2 = new DynamicProxyToken();

            Assert.IsTrue(token1 != token2);
        }
 private DynamicProxyToken RefAssignToken(ref DynamicProxyToken token)
 {
     return token;
 }
 private DynamicProxyToken AssignToken(DynamicProxyToken token)
 {
     return token;
 }
Beispiel #7
0
 private DynamicProxyToken RefAssignToken(ref DynamicProxyToken token)
 {
     return(token);
 }
Beispiel #8
0
 private DynamicProxyToken AssignToken(DynamicProxyToken token)
 {
     return(token);
 }