Accord.Tests.Math.Vector3Test.EqualityTest C# (CSharp) Method

EqualityTest() private method

private EqualityTest ( float x1, float y1, float z1, float x2, float y2, float z2, bool expected ) : void
x1 float
y1 float
z1 float
x2 float
y2 float
z2 float
expected bool
return void
        public void EqualityTest(float x1, float y1, float z1, float x2, float y2, float z2, bool expected)
        {
            Vector3 vector1 = new Vector3(x1, y1, z1);
            Vector3 vector2 = new Vector3(x2, y2, z2);

            Assert.AreEqual(vector1 == vector2, expected);
            Assert.AreEqual(vector1 != vector2, !expected);

            Assert.AreEqual(vector1.Equals(vector2), expected);
            Assert.AreEqual(vector1.Equals((object)vector2), expected);
        }