public void SortChannels_SortByWeightDescending() { EditableBoneWeight e = new EditableBoneWeight(); e.AddChannel(0, 0.1f, true); e.AddChannel(0, 0.5f, true); e.AddChannel(0, 0.4f, true); e.AddChannel(0, 0.6f, true); e.Sort(); Assert.AreEqual(0.6f, e[0].weight, "Channel has incorrect data."); Assert.AreEqual(0.5f, e[1].weight, "Channel has incorrect data."); Assert.AreEqual(0.4f, e[2].weight, "Channel has incorrect data."); Assert.AreEqual(0.1f, e[3].weight, "Channel has incorrect data."); }