Пример #1
0
 public void ComparisonTest10()
 {
     var client1 = new BenchmarkClient("name", "path");
      var client2 = new BenchmarkClient("name", "path/");
      Assert.IsTrue(client1.Equals(client2));
      Assert.IsTrue(client1.CompareTo(client2) == 0);
 }
Пример #2
0
 public void ComparisonTest13()
 {
     var client1 = new BenchmarkClient("name", "path\\");
      var client2 = new BenchmarkClient("name2", "path\\");
      Assert.IsFalse(client1.Equals(client2));
      Assert.IsTrue(client1.CompareTo(client2) < 0);
 }
Пример #3
0
 public void ComparisonTest14()
 {
     var client1 = new BenchmarkClient();
      Assert.IsFalse(client1.Equals(null));
      Assert.IsTrue(client1.CompareTo(null) > 0);
 }
Пример #4
0
 public void ComparisonTest3()
 {
     var client1 = new BenchmarkClient();
      var client2 = new BenchmarkClient();
      Assert.IsTrue(client1.Equals(client2));
      Assert.IsTrue(client1.CompareTo(client2) == 0);
 }