public override bool Equals(object obj) { return(obj is SpotLight light && location.Equals(light.location) && intensity == light.intensity && colors == light.colors); }
public void Tuple4NotEqualToAnotherType() { var t = new Tuple4(1, 1, 1, 1); Assert.False(t.Equals(42)); }
public void Tuple4NotEqualToNull() { var t = new Tuple4(1, 1, 1, 1); Assert.False(t.Equals(null)); }