Example #1
0
        public void ToStringEmptyArraySuccess()
        {
            // arrange
            var vector = new EigenVector();

            // act
            string expected = "{}";
            string actual   = vector.ToString();

            // assert
            Assert.AreEqual(actual, expected);
        }
Example #2
0
        public void ToStringReturnsCorrectResult()
        {
            // arrange
            var vector = new EigenVector(1, 2, 34, 0.25);

            // act
            string expected = "{1, 2, 34, 0.25}";
            string actual   = vector.ToString();

            // assert
            Assert.AreEqual(actual, expected);
        }