public override bool Equals(object obj) { var other = obj as AssetManifest; return other != null && Path.Equals(other.Path, StringComparison.OrdinalIgnoreCase); }
public void AssetsManifestsWithSamePathAreEqual() { var manifest1 = new AssetManifest { Path = "~/path" }; var manifest2 = new AssetManifest { Path = "~/path" }; manifest1.Equals(manifest2).ShouldBeTrue(); }