public void testDifferentTypesAreNotEqual() { Finish finish = Finish.valueOf("Acabamento polido", 12); CustomizedDimensions custDimensions = CustomizedDimensions.valueOf(15.1, 3, 2.1); Assert.False(finish.Equals(custDimensions)); }
protected override bool _Equals(Game other) { return(Equals(Team, other.Team) && Start.Equals(other.Start) && Finish.Equals(other.Finish) && Equals(Tasks, other.Tasks)); }
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))); }