public void testDifferentTypesAreNotEqual()
        {
            Finish finish = Finish.valueOf("Acabamento polido", 12);
            CustomizedDimensions custDimensions = CustomizedDimensions.valueOf(15.1, 3, 2.1);

            Assert.False(finish.Equals(custDimensions));
        }
Ejemplo n.º 2
0
 protected override bool _Equals(Game other)
 {
     return(Equals(Team, other.Team) &&
            Start.Equals(other.Start) &&
            Finish.Equals(other.Finish) &&
            Equals(Tasks, other.Tasks));
 }
Ejemplo n.º 3
0
        public void testDifferentTypesAreNotEqual()
        {
            List <Color> colors = new List <Color>();
            Color        color  = Color.valueOf("Cor de burro quando foge", 1, 2, 3, 0);

            colors.Add(color);

            List <Finish> finishes = new List <Finish>();
            Finish        finish   = Finish.valueOf("Acabamento polido", 12);

            finishes.Add(finish);

            Assert.False(finish.Equals(new Material("1160912", "No", "ola.jpg", colors, finishes)));
        }