Exemplo n.º 1
0
        public void Case1085730_Equals()
        {
            var a = new EcsStringSharedComponent {
                Value = "1"
            };
            var b = new EcsStringSharedComponent {
                Value = 1.ToString()
            };
            bool iseq = TypeManager.Equals(ref a, ref b);

            Assert.IsTrue(iseq);
        }
Exemplo n.º 2
0
        public void Case1085730_HashCode()
        {
            var a = new EcsStringSharedComponent {
                Value = "1"
            };
            var b = new EcsStringSharedComponent {
                Value = 1.ToString()
            };
            int ahash = TypeManager.GetHashCode(ref a);
            int bhash = TypeManager.GetHashCode(ref b);

            Assert.AreEqual(ahash, bhash);
        }