public void FileSpecification_Equals_1() { FileSpecification first = new FileSpecification ( IrbisPath.MasterFile, "IBIS", "brief.pft" ); FileSpecification second = new FileSpecification ( IrbisPath.MasterFile, "IBIS", "BRIEF.pft" ); Assert.IsTrue(first.Equals(second)); Assert.IsTrue(first.Equals((object)second)); second.Database = "RDR"; Assert.IsFalse(first.Equals(second)); Assert.IsFalse(first.Equals((object)second)); Assert.IsFalse(first.Equals((object)null)); Assert.IsTrue(first.Equals((object)first)); first = new FileSpecification ( IrbisPath.MasterFile, "brief.pft" ); second = new FileSpecification ( IrbisPath.MasterFile, "BRIEF.pft" ); Assert.IsTrue(first.Equals(second)); Assert.IsTrue(first.Equals((object)second)); }