Beispiel #1
0
        public void TestEqualsWithDowncast()
        {
            UniVector testVector       = new UniVector(firstTestScalar, secondTestScalar);
            UniVector equivalentVector = new UniVector(firstTestScalar, secondTestScalar);
            UniVector differingVector  = new UniVector(thirdTestScalar, fourthTestScalar);

            Assert.IsTrue(testVector.Equals((object)equivalentVector));
            Assert.IsFalse(testVector.Equals((object)differingVector));
        }
Beispiel #2
0
        public void TestEqualsWithNullReference()
        {
            UniVector testVector = new UniVector(firstTestScalar, secondTestScalar);

            Assert.IsFalse(testVector.Equals(null));
        }
Beispiel #3
0
        public void TestEqualsWithDifferentType()
        {
            UniVector testVector = new UniVector(firstTestScalar, secondTestScalar);

            Assert.IsFalse(testVector.Equals(DateTime.MinValue));
        }
    public void TestEqualsWithNullReference() {
      UniVector testVector = new UniVector(firstTestScalar, secondTestScalar);

      Assert.IsFalse(testVector.Equals(null));
    }
    public void TestEqualsWithDifferentType() {
      UniVector testVector = new UniVector(firstTestScalar, secondTestScalar);

      Assert.IsFalse(testVector.Equals(DateTime.MinValue));
    }
    public void TestEqualsWithDowncast() {
      UniVector testVector = new UniVector(firstTestScalar, secondTestScalar);
      UniVector equivalentVector = new UniVector(firstTestScalar, secondTestScalar);
      UniVector differingVector = new UniVector(thirdTestScalar, fourthTestScalar);

      Assert.IsTrue(testVector.Equals((object)equivalentVector));
      Assert.IsFalse(testVector.Equals((object)differingVector));
    }