Beispiel #1
0
        public void MultiplyRotateRight()
        {
            Element identity = new Element(0, 1, 2);
            Element element = new Element(2, 0, 1);
            Element element2 = new Element(1, 2, 0);

            Assert.AreEqual(element2, element.Multiply(element));
            Assert.AreEqual(identity, element2.Multiply(element));
        }
Beispiel #2
0
        public void MultiplySwitch()
        {
            Element identity = new Element(0, 1, 2);
            Element element = new Element(1, 0, 2);

            Assert.AreEqual(identity, element.Multiply(element));
        }
Beispiel #3
0
        public void MultiplyIdentity()
        {
            Element element = new Element(0, 1, 2);

            Assert.AreEqual(element, element.Multiply(element));
        }