示例#1
0
        public void TestNormalized()
        {
            var testSubject = new LinearEquation(2.25, 5.375);
            var testResult  = testSubject.Normalized;
            var testExpect  = new LinearEquation(0.3861381, 0.9224410);

            Assert.IsTrue(testExpect.Equals(testResult));
        }
示例#2
0
        public void TestNfVectorEquals()
        {
            var testSubject1 = new LinearEquation(2.25, 5.375);
            var testSubject2 = new LinearEquation(2.25, 5.375);

            Assert.IsTrue(testSubject1.Equals(testSubject2));

            Assert.IsTrue(testSubject1 == testSubject2);

            Assert.IsFalse(testSubject1 != testSubject2);
        }