Example #1
0
        public void NormalizeTest()
        {
            var c1 = new Composition();
            c1[1] = 2;
            c1[2] = 3;

            c1.Normalize();
            Assert.IsTrue(c1.IsNormalized);
            Assert.AreEqual(0.4, c1[1]);
            Assert.AreEqual(0.6, c1[2]);
        }