public void Empty() { FrameDimension fd = new FrameDimension(Guid.Empty); Assert.AreEqual("00000000-0000-0000-0000-000000000000", fd.Guid.ToString(), "Guid"); Assert.AreEqual(Guid.Empty.GetHashCode(), fd.GetHashCode(), "GetHashCode"); Assert.AreEqual("[FrameDimension: 00000000-0000-0000-0000-000000000000]", fd.ToString(), "ToString"); Assert.IsTrue(fd.Equals(new FrameDimension(Guid.Empty)), "Equals(Empty)"); Assert.IsFalse(fd.Equals(null), "Equals(null)"); }
public void Equals() { FrameDimension fd = new FrameDimension(new Guid("7462dc86-6180-4c7e-8e3f-ee7333a7a483")); // equals Assert.IsTrue(fd.Equals(FrameDimension.Page), "Page"); // but ToString differs! Assert.AreEqual("[FrameDimension: 7462dc86-6180-4c7e-8e3f-ee7333a7a483]", fd.ToString(), "ToString"); }
public void ToString_ReturnsExpected(string expected, FrameDimension imageFormat) { Assert.Equal(expected, imageFormat.ToString()); }