예제 #1
0
        public void testToString()
        {
            Color        color  = Color.valueOf("Azul", 1, 1, 1, 1);
            Finish       finish = Finish.valueOf("Acabamento polido", 12);
            List <Color> colors = new List <Color>();

            colors.Add(color);
            List <Finish> finishes = new List <Finish>();

            finishes.Add(finish);
            Material           material      = new Material("1234", "Material", "ola.jpg", colors, finishes);
            CustomizedMaterial custMaterial1 = CustomizedMaterial.valueOf(material, color, finish);
            CustomizedMaterial custMaterial2 = CustomizedMaterial.valueOf(material, color, finish);

            Assert.Equal(custMaterial1.ToString(), custMaterial2.ToString());
        }