예제 #1
0
            public void can_negate()
            {
                var actual = new VectorD(2);

                actual.Set(0, -8.8);
                actual.Set(1, 6.1);
                var expected = new VectorD(2);

                expected.Set(0, 8.8);
                expected.Set(1, -6.1);

                actual.Negate();

                Assert.Equal(expected, actual);
            }