public void BlobArtifactModelEquals_ReturnsFalseWhenObjectsAreDifferentTypes() { BlobArtifactModel blobArtifact = new BlobArtifactModel { Attributes = new Dictionary <string, string> { { "NonShipping", true.ToString().ToLower() }, }, Id = null }; Assert.False(blobArtifact.Equals("thisIsNotABlobArtifact!")); }
public void BlobArtifactModelEquals_ReturnsTrueWhenMatchingAttributesAreNull() { BlobArtifactModel blobArtifact = new BlobArtifactModel { Attributes = new Dictionary <string, string> { { "NonShipping", true.ToString().ToLower() }, }, Id = null }; BlobArtifactModel otherBlobArtifact = new BlobArtifactModel { Attributes = new Dictionary <string, string> { { "NonShipping", true.ToString().ToLower() }, }, Id = null }; Assert.True(blobArtifact.Equals(otherBlobArtifact)); }
public void BlobArtifactModelEquals_ReturnsFalseWhenTwoObjectsDoNotHaveMatchingAttributes() { BlobArtifactModel blobArtifact = new BlobArtifactModel { Attributes = new Dictionary <string, string> { { "Shipping", true.ToString().ToLower() }, }, Id = "AssetName" }; BlobArtifactModel otherBlobArtifact = new BlobArtifactModel { Attributes = new Dictionary <string, string> { { "NonShipping", true.ToString().ToLower() }, }, Id = "AssetName" }; Assert.False(blobArtifact.Equals(otherBlobArtifact)); }