Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
Пример #1
0
        public void AssetsManifestsWithSamePathAreEqual()
        {
            var manifest1 = new AssetManifest {
                Path = "~/path"
            };
            var manifest2 = new AssetManifest {
                Path = "~/path"
            };

            manifest1.Equals(manifest2).ShouldBeTrue();
        }
Пример #2
0
        public void AssetsManifestsWithSamePathButDifferentlyCasedAreEqual()
        {
            var manifest1 = new AssetManifest {
                Path = "~/PATH"
            };
            var manifest2 = new AssetManifest {
                Path = "~/path"
            };

            manifest1.Equals(manifest2).ShouldBeTrue();
        }
Пример #3
0
 public void AssetsManifestsWithSamePathButDifferentlyCasedAreEqual()
 {
     var manifest1 = new AssetManifest { Path = "~/PATH" };
     var manifest2 = new AssetManifest { Path = "~/path" };
     manifest1.Equals(manifest2).ShouldBeTrue();
 }
Пример #4
0
 public void AssetsManifestsWithSamePathAreEqual()
 {
     var manifest1 = new AssetManifest { Path = "~/path" };
     var manifest2 = new AssetManifest { Path = "~/path" };
     manifest1.Equals(manifest2).ShouldBeTrue();
 }