示例#1
0
        public void Equals_FalseForNotEqual()
        {
            var a = new Ray2(new Vector2(1, 2), Vector2.UnitY);
            var b = new Ray2(new Vector2(1, 2), Vector2.UnitX);

            Assert.IsFalse(a.Equals(b));
            Assert.IsFalse(a.Equals((object)b));
            Assert.IsFalse(a == b);
        }
示例#2
0
        public void Equals_TrueForEqual()
        {
            var a = new Ray2(new Vector2(1, 2), Vector2.UnitY);
            var b = a;

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(a.Equals((object)b));
            Assert.IsTrue(a == b);
        }