public void Equals_DifferentType_ReturnsFalse() { // Arrange var span = new ModelSpan(SourceLocation.Zero, "A", "A"); // Act + Assert Assert.IsFalse(span.Equals(new object())); }
public void Equals_SameInstance_ReturnsTrue() { // Arrange var span = new ModelSpan(SourceLocation.Zero, " TypeName ", "TypeName"); // Act + Assert Assert.IsTrue(span.Equals(span)); }
public void Equals_NullValue_ReturnsFalse() { // Arrange var span = new ModelSpan(SourceLocation.Zero, "A", "A"); // Act + Assert Assert.IsFalse(span.Equals(null)); }
public void Equals_IdenticalSpan_ReturnsTrue() { // Arrange var span1 = new ModelSpan(SourceLocation.Zero, " TypeName ", "TypeName"); var span2 = new ModelSpan(SourceLocation.Zero, " TypeName ", "TypeName"); // Act + Assert Assert.IsTrue(span1.Equals(span2)); }