Cassette.Manifests.AssetManifest.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            var other = obj as AssetManifest;
            return other != null && Path.Equals(other.Path, StringComparison.OrdinalIgnoreCase);
        }

Usage Example

Exemplo n.º 1
0
        public void AssetsManifestsWithSamePathAreEqual()
        {
            var manifest1 = new AssetManifest {
                Path = "~/path"
            };
            var manifest2 = new AssetManifest {
                Path = "~/path"
            };

            manifest1.Equals(manifest2).ShouldBeTrue();
        }
All Usage Examples Of Cassette.Manifests.AssetManifest::Equals