Equals() public méthode

public Equals ( object value ) : bool
value object
Résultat bool
Exemple #1
0
 public void PosTest2()
 {
     UTF7Encoding utf71 = new UTF7Encoding();
     UTF7Encoding utf72 = new UTF7Encoding();
     utf71 = utf72;
     Assert.True(utf71.Equals(utf72));
 }
Exemple #2
0
 public void PosTest8()
 {
     UTF7Encoding utf71 = new UTF7Encoding(false);
     UTF7Encoding utf72 = new UTF7Encoding();
     Assert.True(utf71.Equals(utf72));
 }
Exemple #3
0
 public void PosTest7()
 {
     UTF7Encoding utf71 = new UTF7Encoding(true);
     UTF7Encoding utf72 = new UTF7Encoding();
     Assert.False(utf71.Equals(utf72));
 }
Exemple #4
0
 public void PosTest3()
 {
     UTF7Encoding utf71 = new UTF7Encoding();
     Assert.False(utf71.Equals(null));
 }