Equals() public method

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