Пример #1
0
        public void HashcodeAndEquals_AssemblyReferenceIsDifferent()
        {
            var a = MethodRef.CreateLocalReference(_nA, _mA, _dA);
            var b = MethodRef.CreateAssemblyReference(_nA, _mA);

            Assert.AreNotEqual(a, b);
            Assert.IsFalse(a.GetHashCode() == b.GetHashCode());
        }
Пример #2
0
        public void ShouldSetProperties2()
        {
            var actual = MethodRef.CreateAssemblyReference(_nA, _mA);

            Assert.AreSame(_nA, actual.Name);
            Assert.IsNull(actual.Declaration);
            Assert.AreSame(_mA, actual.Method);
            Assert.IsTrue(actual.IsAssemblyReference);
        }