public void Equals_Test1() { PDFThickness target = new PDFThickness(10, 20, 30, 40); object obj = null; bool expected = false; bool actual; actual = target.Equals(obj); Assert.AreEqual(expected, actual); obj = new PDFThickness(10, 20, 30, 40); expected = true; actual = target.Equals(obj); Assert.AreEqual(expected, actual); }
public void Equals_Test() { PDFThickness target = new PDFThickness(10, 20, 30, 40); PDFThickness other = new PDFThickness(10, 20, 30, 40); bool expected = true; bool actual; actual = target.Equals(other); Assert.AreEqual(expected, actual); other = new PDFThickness(20, 30, 40, 50); expected = false; actual = target.Equals(other); Assert.AreEqual(expected, actual); other = new PDFThickness(0, 20, 30, 40); expected = false; actual = target.Equals(other); Assert.AreEqual(expected, actual); other = new PDFThickness(10, 0, 30, 40); expected = false; actual = target.Equals(other); Assert.AreEqual(expected, actual); other = new PDFThickness(10, 20, 0, 40); expected = false; actual = target.Equals(other); Assert.AreEqual(expected, actual); other = new PDFThickness(10, 20, 30, 0); expected = false; actual = target.Equals(other); Assert.AreEqual(expected, actual); }